mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Initilaise new cpu's processed-time value from cpu0's
timestamp. The new cpu's timestamp is not initialised yet, so should not be used. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
6aca98f1f5
commit
9b10397406
1 file changed
+2
-1
@@ -872,8 +872,9 @@ void local_setup_timer(unsigned int cpu)
|
||||
|
||||
do {
|
||||
seq = read_seqbegin(&xtime_lock);
|
||||
/* Use cpu0 timestamp: cpu's shadow is not initialised yet. */
|
||||
per_cpu(processed_system_time, cpu) =
|
||||
per_cpu(shadow_time, cpu).system_timestamp;
|
||||
per_cpu(shadow_time, 0).system_timestamp;
|
||||
} while (read_seqretry(&xtime_lock, seq));
|
||||
|
||||
sprintf(timer_name[cpu], "timer%d", cpu);
|
||||
|
||||