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:
kaf24@firebug.cl.cam.ac.uk committed 2005-12-10 16:21:43 +01:00
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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.