x86: make 64bit have get_apic_id
authorYinghai Lu <yhlu.kernel@gmail.com>
Sat, 12 Jul 2008 08:01:20 +0000 (01:01 -0700)
committerIngo Molnar <mingo@elte.hu>
Sun, 13 Jul 2008 06:27:46 +0000 (08:27 +0200)
commitf910a9dc7c865896815e2a95fe33363e9522f277
treea4d1361f7d38dd358da62a1c14191cdbf6011d98
parent4c9961d56ec20c27ec5d02e49fd7427748312741
x86: make 64bit have get_apic_id

generalize the x2apic code some more.

let read_apic_id become a macro (later on a function/inline)
GET_APIC_ID(apic_read(APIC_ID))

  +#define read_apic_id()  (GET_APIC_ID(apic_read(APIC_ID)))

instead of this weird construct:

  -#define read_apic_id  (genapic->read_apic_id)

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/genapic_flat_64.c
arch/x86/kernel/genx2apic_cluster.c
arch/x86/kernel/genx2apic_phys.c
arch/x86/kernel/genx2apic_uv_x.c
include/asm-x86/genapic_64.h
include/asm-x86/mach-default/mach_apic.h
include/asm-x86/mach-default/mach_apicdef.h