ia64/linux-2.6.18-xen.hg

changeset 561:557a4a0a5eac

xen: Set blocking timeout to 1/2 jiffy later than we want. This avoids
repeated early wakeup just before the jiffy tick, causing us to
effectively spin rather than sleep.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri May 30 19:08:50 2008 +0100 (2008-05-30)
parents 936f6dd9d49c
children 66faefe721eb
files arch/i386/kernel/time-xen.c
line diff
     1.1 --- a/arch/i386/kernel/time-xen.c	Tue May 27 10:33:54 2008 +0100
     1.2 +++ b/arch/i386/kernel/time-xen.c	Fri May 30 19:08:50 2008 +0100
     1.3 @@ -1013,7 +1013,7 @@ static void stop_hz_timer(void)
     1.4  		j = jiffies + 1;
     1.5  	}
     1.6  
     1.7 -	singleshot.timeout_abs_ns = jiffies_to_st(j);
     1.8 +	singleshot.timeout_abs_ns = jiffies_to_st(j) + NS_PER_TICK/2;
     1.9  	singleshot.flags = 0;
    1.10  	rc = HYPERVISOR_vcpu_op(VCPUOP_set_singleshot_timer, cpu, &singleshot);
    1.11  #if CONFIG_XEN_COMPAT <= 0x030004