diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-30 21:57:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-05 16:27:55 -0500 |
commit | fdbecd9fd14198853bec4cbae8bc7af93f2e3de3 (patch) | |
tree | 7b697ba90a48fa94529e03ec7e1109864f031cf2 /arch/x86/kernel | |
parent | 65a4e574d2382d83f71b30ea92f86d2e40a6ef8d (diff) |
x86, apic: explain the purpose of max_physical_apicid
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index a04a73a51d20..5475e1c31800 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c | |||
@@ -50,13 +50,26 @@ | |||
50 | #include <asm/smp.h> | 50 | #include <asm/smp.h> |
51 | 51 | ||
52 | unsigned int num_processors; | 52 | unsigned int num_processors; |
53 | |||
53 | unsigned disabled_cpus __cpuinitdata; | 54 | unsigned disabled_cpus __cpuinitdata; |
55 | |||
54 | /* Processor that is doing the boot up */ | 56 | /* Processor that is doing the boot up */ |
55 | unsigned int boot_cpu_physical_apicid = -1U; | 57 | unsigned int boot_cpu_physical_apicid = -1U; |
56 | EXPORT_SYMBOL(boot_cpu_physical_apicid); | 58 | |
59 | /* | ||
60 | * The highest APIC ID seen during enumeration. | ||
61 | * | ||
62 | * This determines the messaging protocol we can use: if all APIC IDs | ||
63 | * are in the 0 ... 7 range, then we can use logical addressing which | ||
64 | * has some performance advantages (better broadcasting). | ||
65 | * | ||
66 | * If there's an APIC ID above 8, we use physical addressing. | ||
67 | */ | ||
57 | unsigned int max_physical_apicid; | 68 | unsigned int max_physical_apicid; |
58 | 69 | ||
59 | /* Bitmask of physically existing CPUs */ | 70 | /* |
71 | * Bitmask of physically existing CPUs: | ||
72 | */ | ||
60 | physid_mask_t phys_cpu_present_map; | 73 | physid_mask_t phys_cpu_present_map; |
61 | 74 | ||
62 | /* | 75 | /* |