diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-24 05:01:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:00 -0400 |
commit | 7c37e48b5125fdb0acac846a0a3af42806175d44 (patch) | |
tree | 4960e3c9b0ffae7ca79cfe189b7b11632b2acc76 /arch/x86/kernel | |
parent | db4b5525caafd846ec20f95afbc6403c792e22cf (diff) |
x86: apic - introduce get_physical_broadcast for 64bit
We don't really use it now on 64bit mode but
could reserve it for future.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 8f551276681e..bb46711a0b1e 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -244,6 +244,16 @@ void __cpuinit enable_NMI_through_LVT0(void) | |||
244 | apic_write(APIC_LVT0, v); | 244 | apic_write(APIC_LVT0, v); |
245 | } | 245 | } |
246 | 246 | ||
247 | #ifdef CONFIG_X86_32 | ||
248 | /** | ||
249 | * get_physical_broadcast - Get number of physical broadcast IDs | ||
250 | */ | ||
251 | int get_physical_broadcast(void) | ||
252 | { | ||
253 | return modern_apic() ? 0xff : 0xf; | ||
254 | } | ||
255 | #endif | ||
256 | |||
247 | /** | 257 | /** |
248 | * lapic_get_maxlvt - get the maximum number of local vector table entries | 258 | * lapic_get_maxlvt - get the maximum number of local vector table entries |
249 | */ | 259 | */ |