mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Drivers: hv: vmbus: Get the current time from the current clocksource
The current code uses the MSR based mechanism to get the current tick. Use the current clock source as that might be more optimal. Signed-off-by: K. Y. Srinivasan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
7975bd4cca
commit
e546d778d6
2 changed files with 1 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ static int hv_ce_set_next_event(unsigned long delta,
|
|||
|
||||
WARN_ON(!clockevent_state_oneshot(evt));
|
||||
|
||||
hv_get_current_tick(current_tick);
|
||||
current_tick = hyperv_cs->read(NULL);
|
||||
current_tick += delta;
|
||||
hv_init_timer(HV_X64_MSR_STIMER0_COUNT, current_tick);
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue