]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: don't set pagetable_setup_{start,done} hooks on 64-bit
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 30 Jan 2008 12:33:20 +0000 (13:33 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:33:20 +0000 (13:33 +0100)
paravirt_pagetable_setup_{start,done}() are not used (yet) under x86_64,
and native_pagetable_setup_{start,done}() don't exist on x86_64. So they
don't need to be set.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/paravirt.c

index c67d33103b91ec6ee3daf222b0347267ad46a3f3..37f38b71c50a44fd84c56b72b4a68966f356fde0 100644 (file)
@@ -367,8 +367,10 @@ struct pv_apic_ops pv_apic_ops = {
 };
 
 struct pv_mmu_ops pv_mmu_ops = {
+#ifndef CONFIG_X86_64
        .pagetable_setup_start = native_pagetable_setup_start,
        .pagetable_setup_done = native_pagetable_setup_done,
+#endif
 
        .read_cr2 = native_read_cr2,
        .write_cr2 = native_write_cr2,