]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
xen: xenbus: quirk uses x86 specific cpuid
authorIan Campbell <ian.campbell@citrix.com>
Wed, 17 Oct 2012 08:39:08 +0000 (09:39 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Oct 2012 19:17:48 +0000 (15:17 -0400)
This breaks on ARM. This quirk is not necessary on ARM because no
hypervisors of that vintage exist for that architecture (port is too
new).

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[v1: Moved the ifdef inside the function per Jan Beulich suggestion]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xenbus/xenbus_xs.c

index f5dda83ad7a55048256f29ab79756c092450c08f..acedeabe589c94eaecd5ab5d478f7e7b3bfbe4af 100644 (file)
@@ -627,6 +627,7 @@ static struct xenbus_watch *find_watch(const char *token)
  */
 static bool xen_strict_xenbus_quirk(void)
 {
+#ifdef CONFIG_X86
        uint32_t eax, ebx, ecx, edx, base;
 
        base = xen_cpuid_base();
@@ -634,6 +635,7 @@ static bool xen_strict_xenbus_quirk(void)
 
        if ((eax >> 16) < 4)
                return true;
+#endif
        return false;
 
 }