diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 08:59:17 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:29 -0500 |
commit | 5b8127277bc4cdca78eda5ee900a314642822ace (patch) | |
tree | 07559a79f03be24bd5cc1df238233b2d63550c94 /arch/x86/kernel/apic.c | |
parent | ca6c8ed4646f8ccaa4f7db618bf69b8b8fb49767 (diff) |
x86, apic: refactor ->apic_id_mask & APIC_ID_MASK
- spread out the namespace on a per driver basis
- get rid of wrapper macros
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r-- | arch/x86/kernel/apic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index 9d6374da4784..5f7f3a9a47ad 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c | |||
@@ -1009,11 +1009,11 @@ int __init verify_local_APIC(void) | |||
1009 | */ | 1009 | */ |
1010 | reg0 = apic_read(APIC_ID); | 1010 | reg0 = apic_read(APIC_ID); |
1011 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0); | 1011 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0); |
1012 | apic_write(APIC_ID, reg0 ^ APIC_ID_MASK); | 1012 | apic_write(APIC_ID, reg0 ^ apic->apic_id_mask); |
1013 | reg1 = apic_read(APIC_ID); | 1013 | reg1 = apic_read(APIC_ID); |
1014 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg1); | 1014 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg1); |
1015 | apic_write(APIC_ID, reg0); | 1015 | apic_write(APIC_ID, reg0); |
1016 | if (reg1 != (reg0 ^ APIC_ID_MASK)) | 1016 | if (reg1 != (reg0 ^ apic->apic_id_mask)) |
1017 | return 0; | 1017 | return 0; |
1018 | 1018 | ||
1019 | /* | 1019 | /* |