diff options
-rw-r--r-- | arch/x86/kernel/apic_32.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index 9e8702eebd46..41134d4e6a66 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -128,7 +128,11 @@ static inline int lapic_get_version(void) | |||
128 | */ | 128 | */ |
129 | static inline int lapic_is_integrated(void) | 129 | static inline int lapic_is_integrated(void) |
130 | { | 130 | { |
131 | #ifdef CONFIG_X86_64 | ||
132 | return 1; | ||
133 | #else | ||
131 | return APIC_INTEGRATED(lapic_get_version()); | 134 | return APIC_INTEGRATED(lapic_get_version()); |
135 | #endif | ||
132 | } | 136 | } |
133 | 137 | ||
134 | /* | 138 | /* |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 46523c0cc6f6..18c0b8cd2376 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -111,11 +111,15 @@ static inline int lapic_get_version(void) | |||
111 | } | 111 | } |
112 | 112 | ||
113 | /* | 113 | /* |
114 | * Check, if the APIC is integrated or a seperate chip | 114 | * Check, if the APIC is integrated or a separate chip |
115 | */ | 115 | */ |
116 | static inline int lapic_is_integrated(void) | 116 | static inline int lapic_is_integrated(void) |
117 | { | 117 | { |
118 | #ifdef CONFIG_X86_64 | ||
118 | return 1; | 119 | return 1; |
120 | #else | ||
121 | return APIC_INTEGRATED(lapic_get_version()); | ||
122 | #endif | ||
119 | } | 123 | } |
120 | 124 | ||
121 | /* | 125 | /* |