Xen: fix cpu_hotplug.c build by replacing is_running_on_xen() with xen_pv_domain()
authorAlex Nixon <alex.nixon@citrix.com>
Wed, 3 Sep 2008 13:30:21 +0000 (14:30 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Sep 2008 15:44:07 +0000 (17:44 +0200)
Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/xen/cpu_hotplug.c

index 1bc0035..565280e 100644 (file)
@@ -78,7 +78,7 @@ static int __init setup_vcpu_hotplug_event(void)
        static struct notifier_block xsn_cpu = {
                .notifier_call = setup_cpu_watcher };
 
-       if (!is_running_on_xen())
+       if (!xen_pv_domain())
                return -ENODEV;
 
        register_xenstore_notifier(&xsn_cpu);