diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-07-24 07:52:28 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-24 07:52:28 -0400 |
commit | 36a028de785c6e6f15ac84f8b3b087b89137ea26 (patch) | |
tree | b72dd3de4bdbbb556b6e5bf770993f7b0937a830 /arch/x86/kernel/apic_32.c | |
parent | 32f71aff77b6470d272f80ac28f43f9601c4d140 (diff) |
x86: apic unification - merge down lapic_get_maxlvt
No code change on binary level.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: macro@linux-mips.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_32.c')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index d6c898358371..447dd8c5c0e9 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -193,9 +193,13 @@ int get_physical_broadcast(void) | |||
193 | */ | 193 | */ |
194 | int lapic_get_maxlvt(void) | 194 | int lapic_get_maxlvt(void) |
195 | { | 195 | { |
196 | unsigned int v = apic_read(APIC_LVR); | 196 | unsigned int v; |
197 | 197 | ||
198 | /* 82489DXs do not report # of LVT entries. */ | 198 | v = apic_read(APIC_LVR); |
199 | /* | ||
200 | * - we always have APIC integrated on 64bit mode | ||
201 | * - 82489DXs do not report # of LVT entries | ||
202 | */ | ||
199 | return APIC_INTEGRATED(GET_APIC_VERSION(v)) ? GET_APIC_MAXLVT(v) : 2; | 203 | return APIC_INTEGRATED(GET_APIC_VERSION(v)) ? GET_APIC_MAXLVT(v) : 2; |
200 | } | 204 | } |
201 | 205 | ||