ia64/xen-unstable

changeset 3383:fe3021514eb9

bitkeeper revision 1.1159.215.1 (41dd9440RCB9O49X9bZlfiHbEEgFKA)

process.c:
Disable preemption before reading smp_processor_id.
author cl349@arcadians.cl.cam.ac.uk
date Thu Jan 06 19:40:48 2005 +0000 (2005-01-06)
parents 4c2c41071357
children 3b51a853296f
files linux-2.6.10-xen-sparse/arch/xen/i386/kernel/process.c
line diff
     1.1 --- a/linux-2.6.10-xen-sparse/arch/xen/i386/kernel/process.c	Tue Jan 04 11:44:16 2005 +0000
     1.2 +++ b/linux-2.6.10-xen-sparse/arch/xen/i386/kernel/process.c	Thu Jan 06 19:40:48 2005 +0000
     1.3 @@ -93,10 +93,11 @@ EXPORT_SYMBOL(enable_hlt);
     1.4  extern int set_timeout_timer(void);
     1.5  void xen_idle(void)
     1.6  {
     1.7 -	int cpu = smp_processor_id();
     1.8 +	int cpu;
     1.9  
    1.10  	local_irq_disable();
    1.11  
    1.12 +	cpu = smp_processor_id();
    1.13  	if (rcu_pending(cpu))
    1.14  		rcu_check_callbacks(cpu, 0);
    1.15