ia64/xen-unstable

changeset 18485:34aed15ba9df

x86, cpu hotplug: flush softirq work when going offline

From: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Sep 12 10:40:19 2008 +0100 (2008-09-12)
parents f125e481d8b6
children 31e06b3ccf53
files xen/arch/x86/domain.c
line diff
     1.1 --- a/xen/arch/x86/domain.c	Fri Sep 12 10:34:50 2008 +0100
     1.2 +++ b/xen/arch/x86/domain.c	Fri Sep 12 10:40:19 2008 +0100
     1.3 @@ -86,6 +86,12 @@ static void default_idle(void)
     1.4  
     1.5  static void play_dead(void)
     1.6  {
     1.7 +    /*
     1.8 +     * Flush pending softirqs if any. They can be queued up before this CPU
     1.9 +     * was taken out of cpu_online_map in __cpu_disable().
    1.10 +     */
    1.11 +    do_softirq();
    1.12 +
    1.13      /* This must be done before dead CPU ack */
    1.14      cpu_exit_clear();
    1.15      hvm_cpu_down();