only call hardclock on cpu0
pointed out by: Scott Long
This commit is contained in:
parent
53cb00a92b
commit
e67fc8f258
@ -315,7 +315,10 @@ clkintr(void *arg)
|
|||||||
processed_system_time += (delta / NS_PER_TICK) * NS_PER_TICK;
|
processed_system_time += (delta / NS_PER_TICK) * NS_PER_TICK;
|
||||||
per_cpu(processed_system_time, cpu) += (delta_cpu / NS_PER_TICK) * NS_PER_TICK;
|
per_cpu(processed_system_time, cpu) += (delta_cpu / NS_PER_TICK) * NS_PER_TICK;
|
||||||
}
|
}
|
||||||
hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame));
|
if (PCPU_GET(cpuid) == 0)
|
||||||
|
hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame));
|
||||||
|
else
|
||||||
|
hardclock_cpu(TRAPF_USERMODE(frame));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Take synchronised time from Xen once a minute if we're not
|
* Take synchronised time from Xen once a minute if we're not
|
||||||
|
Loading…
x
Reference in New Issue
Block a user