diff options
author | Jack Steiner <steiner@sgi.com> | 2008-03-28 15:12:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:33 -0400 |
commit | 05f2d12c3563dea8c81b301f9f3cf7919af23b13 (patch) | |
tree | d696f29159d311d8d1fde7f6bd1b01261ca713b9 /arch/x86/kernel/apic_64.c | |
parent | a5c15d419d4b68535222b51f9054dd08d5e67470 (diff) |
x86: change GET_APIC_ID() from an inline function to an out-of-line function
Introduce a function to read the local APIC_ID.
This change is in preparation for additional changes to
the APICID functions that will come in a later patch.
Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic_64.c')
-rw-r--r-- | arch/x86/kernel/apic_64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 4ee521ff0a3e..9b4cacdfd74f 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -650,10 +650,10 @@ int __init verify_local_APIC(void) | |||
650 | /* | 650 | /* |
651 | * The ID register is read/write in a real APIC. | 651 | * The ID register is read/write in a real APIC. |
652 | */ | 652 | */ |
653 | reg0 = apic_read(APIC_ID); | 653 | reg0 = read_apic_id(); |
654 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0); | 654 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg0); |
655 | apic_write(APIC_ID, reg0 ^ APIC_ID_MASK); | 655 | apic_write(APIC_ID, reg0 ^ APIC_ID_MASK); |
656 | reg1 = apic_read(APIC_ID); | 656 | reg1 = read_apic_id(); |
657 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg1); | 657 | apic_printk(APIC_DEBUG, "Getting ID: %x\n", reg1); |
658 | apic_write(APIC_ID, reg0); | 658 | apic_write(APIC_ID, reg0); |
659 | if (reg1 != (reg0 ^ APIC_ID_MASK)) | 659 | if (reg1 != (reg0 ^ APIC_ID_MASK)) |
@@ -892,7 +892,7 @@ void __init early_init_lapic_mapping(void) | |||
892 | * Fetch the APIC ID of the BSP in case we have a | 892 | * Fetch the APIC ID of the BSP in case we have a |
893 | * default configuration (or the MP table is broken). | 893 | * default configuration (or the MP table is broken). |
894 | */ | 894 | */ |
895 | boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); | 895 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
896 | } | 896 | } |
897 | 897 | ||
898 | /** | 898 | /** |
@@ -919,7 +919,7 @@ void __init init_apic_mappings(void) | |||
919 | * Fetch the APIC ID of the BSP in case we have a | 919 | * Fetch the APIC ID of the BSP in case we have a |
920 | * default configuration (or the MP table is broken). | 920 | * default configuration (or the MP table is broken). |
921 | */ | 921 | */ |
922 | boot_cpu_physical_apicid = GET_APIC_ID(apic_read(APIC_ID)); | 922 | boot_cpu_physical_apicid = GET_APIC_ID(read_apic_id()); |
923 | } | 923 | } |
924 | 924 | ||
925 | /* | 925 | /* |
@@ -1140,7 +1140,7 @@ static int lapic_suspend(struct sys_device *dev, pm_message_t state) | |||
1140 | 1140 | ||
1141 | maxlvt = lapic_get_maxlvt(); | 1141 | maxlvt = lapic_get_maxlvt(); |
1142 | 1142 | ||
1143 | apic_pm_state.apic_id = apic_read(APIC_ID); | 1143 | apic_pm_state.apic_id = read_apic_id(); |
1144 | apic_pm_state.apic_taskpri = apic_read(APIC_TASKPRI); | 1144 | apic_pm_state.apic_taskpri = apic_read(APIC_TASKPRI); |
1145 | apic_pm_state.apic_ldr = apic_read(APIC_LDR); | 1145 | apic_pm_state.apic_ldr = apic_read(APIC_LDR); |
1146 | apic_pm_state.apic_dfr = apic_read(APIC_DFR); | 1146 | apic_pm_state.apic_dfr = apic_read(APIC_DFR); |