mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
arch/x86_64: Fix up_timer_start
Fix according to up_alarm_start. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
committed by
Mateusz Szafoni
parent
b8670e905a
commit
e6548ead20
@@ -303,6 +303,8 @@ int up_timer_start(const struct timespec *ts)
|
||||
|
||||
up_tmr_sync_up();
|
||||
|
||||
up_unmask_tmr();
|
||||
|
||||
ticks = up_ts2tick(ts) + rdtscp();
|
||||
|
||||
g_timer_active = 1;
|
||||
@@ -311,8 +313,6 @@ int up_timer_start(const struct timespec *ts)
|
||||
|
||||
g_goal_time = ticks;
|
||||
|
||||
up_unmask_tmr();
|
||||
|
||||
up_tmr_sync_down();
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user