aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/vmi_32.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-07-18 12:59:40 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-18 13:05:29 -0400
commit9a8f0e6b5dfe3b4f330fc82b16a4000f5688fce8 (patch)
tree3e6f8b6efeec51f8d0b32a6dcd8ed39183667794 /arch/x86/kernel/vmi_32.c
parent94a8c3c2437c8946f1b6c8e0b2c560a7db8ed3c6 (diff)
x86: let 32bit use apic_ops too - fix
Fix VMI apic_ops. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Acked-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/vmi_32.c')
-rw-r--r--arch/x86/kernel/vmi_32.c51
1 files changed, 3 insertions, 48 deletions
diff --git a/arch/x86/kernel/vmi_32.c b/arch/x86/kernel/vmi_32.c
index cf3074354553..237082833c14 100644
--- a/arch/x86/kernel/vmi_32.c
+++ b/arch/x86/kernel/vmi_32.c
@@ -676,50 +676,6 @@ static inline int __init probe_vmi_rom(void)
676 return 0; 676 return 0;
677} 677}
678 678
679#ifdef CONFIG_X86_LOCAL_APIC
680static u32 vmi_apic_read(u32 reg)
681{
682 return 0;
683}
684
685static void vmi_apic_write(u32 reg, u32 val)
686{
687 /* Warn to see if there's any stray references */
688 WARN_ON(1);
689}
690
691static u64 vmi_apic_icr_read(void)
692{
693 return 0;
694}
695
696static void vmi_apic_icr_write(u32 low, u32 id)
697{
698 /* Warn to see if there's any stray references */
699 WARN_ON(1);
700}
701
702static void vmi_apic_wait_icr_idle(void)
703{
704 return;
705}
706
707static u32 vmi_safe_apic_wait_icr_idle(void)
708{
709 return 0;
710}
711
712static struct apic_ops vmi_basic_apic_ops = {
713 .read = vmi_apic_read,
714 .write = vmi_apic_write,
715 .write_atomic = vmi_apic_write,
716 .icr_read = vmi_apic_icr_read,
717 .icr_write = vmi_apic_icr_write,
718 .wait_icr_idle = vmi_apic_wait_icr_idle,
719 .safe_wait_icr_idle = vmi_safe_apic_wait_icr_idle,
720};
721#endif
722
723/* 679/*
724 * VMI setup common to all processors 680 * VMI setup common to all processors
725 */ 681 */
@@ -948,10 +904,9 @@ static inline int __init activate_vmi(void)
948#endif 904#endif
949 905
950#ifdef CONFIG_X86_LOCAL_APIC 906#ifdef CONFIG_X86_LOCAL_APIC
951 para_fill(vmi_basic_apic_ops.read, APICRead); 907 para_fill(apic_ops->read, APICRead);
952 para_fill(vmi_basic_apic_ops.write, APICWrite); 908 para_fill(apic_ops->write, APICWrite);
953 para_fill(vmi_basic_apic_ops.write_atomic, APICWrite); 909 para_fill(apic_ops->write_atomic, APICWrite);
954 apic_ops = &vmi_basic_apic_ops;
955#endif 910#endif
956 911
957 /* 912 /*