Commit 7c37e48b authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Ingo Molnar

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: default avatarCyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent db4b5525
...@@ -244,6 +244,16 @@ void __cpuinit enable_NMI_through_LVT0(void) ...@@ -244,6 +244,16 @@ void __cpuinit enable_NMI_through_LVT0(void)
apic_write(APIC_LVT0, v); apic_write(APIC_LVT0, v);
} }
#ifdef CONFIG_X86_32
/**
* get_physical_broadcast - Get number of physical broadcast IDs
*/
int get_physical_broadcast(void)
{
return modern_apic() ? 0xff : 0xf;
}
#endif
/** /**
* lapic_get_maxlvt - get the maximum number of local vector table entries * lapic_get_maxlvt - get the maximum number of local vector table entries
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment