]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/xen/cpu_hotplug.c
scripts/spelling.txt: add "varible" pattern and fix typo instances
[karo-tx-linux.git] / drivers / xen / cpu_hotplug.c
index 5676aefdf2bca72bd8734ff2642c3720b480d43a..0003912a8111959a101803f52ed8be80f4ae2f30 100644 (file)
@@ -68,13 +68,12 @@ static void vcpu_hotplug(unsigned int cpu)
 }
 
 static void handle_vcpu_hotplug_event(struct xenbus_watch *watch,
-                                       const char **vec, unsigned int len)
+                                     const char *path, const char *token)
 {
        unsigned int cpu;
        char *cpustr;
-       const char *node = vec[XS_WATCH_PATH];
 
-       cpustr = strstr(node, "cpu/");
+       cpustr = strstr(path, "cpu/");
        if (cpustr != NULL) {
                sscanf(cpustr, "cpu/%u", &cpu);
                vcpu_hotplug(cpu);
@@ -107,7 +106,7 @@ static int __init setup_vcpu_hotplug_event(void)
                .notifier_call = setup_cpu_watcher };
 
 #ifdef CONFIG_X86
-       if (!xen_pv_domain())
+       if (!xen_pv_domain() && !xen_pvh_domain())
 #else
        if (!xen_domain())
 #endif