sched/timer: get the previous reload value correctly

Change-Id: I312d3ee74753441793f9505e168e449af3ab2c37
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-01-18 16:59:56 +08:00 committed by Xiang Xiao
parent 13100cf248
commit 3e9b89f778

View File

@ -238,7 +238,7 @@ int timer_settime(timer_t timerid, int flags,
/* Convert that to a struct timespec and return it */
clock_ticks2time(delay, &ovalue->it_value);
clock_ticks2time(timer->pt_last, &ovalue->it_interval);
clock_ticks2time(timer->pt_delay, &ovalue->it_interval);
}
/* Disarm the timer (in case the timer was already armed when