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:
ouyangxiangzhen 2024-06-28 17:09:50 +08:00 committed by Mateusz Szafoni
parent b8670e905a
commit e6548ead20

View file

@ -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;
}