ia64/xen-unstable

changeset 8316:0880561d46d1

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>
author kaf24@firebug.cl.cam.ac.uk
date Sat Dec 10 16:21:43 2005 +0100 (2005-12-10)
parents fc8d01a6dcac
children 44301f65f23e
files linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c	Sat Dec 10 16:07:03 2005 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/kernel/time.c	Sat Dec 10 16:21:43 2005 +0100
     1.3 @@ -872,8 +872,9 @@ void local_setup_timer(unsigned int cpu)
     1.4  
     1.5  	do {
     1.6  		seq = read_seqbegin(&xtime_lock);
     1.7 +		/* Use cpu0 timestamp: cpu's shadow is not initialised yet. */
     1.8  		per_cpu(processed_system_time, cpu) = 
     1.9 -			per_cpu(shadow_time, cpu).system_timestamp;
    1.10 +			per_cpu(shadow_time, 0).system_timestamp;
    1.11  	} while (read_seqretry(&xtime_lock, seq));
    1.12  
    1.13  	sprintf(timer_name[cpu], "timer%d", cpu);