]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: Simplify CPU_TASKS_FROZEN cpu notifier handling
authorAvi Kivity <avi@qumranet.com>
Sun, 11 Nov 2007 16:37:32 +0000 (18:37 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:01 +0000 (17:53 +0200)
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c

index 8d6e55f95fbb3c165ae0f21c38f44eaf99aa2009..d395c987894e4992b56d095a7934d99d11e7092d 100644 (file)
@@ -1335,21 +1335,19 @@ static int kvm_cpu_hotplug(struct notifier_block *notifier, unsigned long val,
 {
        int cpu = (long)v;
 
+       val &= ~CPU_TASKS_FROZEN;
        switch (val) {
        case CPU_DYING:
-       case CPU_DYING_FROZEN:
                printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n",
                       cpu);
                hardware_disable(NULL);
                break;
        case CPU_UP_CANCELED:
-       case CPU_UP_CANCELED_FROZEN:
                printk(KERN_INFO "kvm: disabling virtualization on CPU%d\n",
                       cpu);
                smp_call_function_single(cpu, hardware_disable, NULL, 0, 1);
                break;
        case CPU_ONLINE:
-       case CPU_ONLINE_FROZEN:
                printk(KERN_INFO "kvm: enabling virtualization on CPU%d\n",
                       cpu);
                smp_call_function_single(cpu, hardware_enable, NULL, 0, 1);