Ver Fonte

xen: cpu_detect is 32-bit only

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stephen Tweedie <sct@redhat.com>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Cc: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Jeremy Fitzhardinge há 17 anos atrás
pai
commit
7d087b68d6
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      arch/x86/xen/enlighten.c

+ 2 - 2
arch/x86/xen/enlighten.c

@@ -1365,12 +1365,12 @@ asmlinkage void __init xen_start_kernel(void)
 	/* set the limit of our address space */
 	/* set the limit of our address space */
 	xen_reserve_top();
 	xen_reserve_top();
 
 
+#ifdef CONFIG_X86_32
 	/* set up basic CPUID stuff */
 	/* set up basic CPUID stuff */
 	cpu_detect(&new_cpu_data);
 	cpu_detect(&new_cpu_data);
-#ifdef CONFIG_X86_32
 	new_cpu_data.hard_math = 1;
 	new_cpu_data.hard_math = 1;
-#endif
 	new_cpu_data.x86_capability[0] = cpuid_edx(1);
 	new_cpu_data.x86_capability[0] = cpuid_edx(1);
+#endif
 
 
 	/* Poke various useful things into boot_params */
 	/* Poke various useful things into boot_params */
 	boot_params.hdr.type_of_loader = (9 << 4) | 0;
 	boot_params.hdr.type_of_loader = (9 << 4) | 0;