diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-12 04:01:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-13 02:27:46 -0400 |
commit | f910a9dc7c865896815e2a95fe33363e9522f277 (patch) | |
tree | a4d1361f7d38dd358da62a1c14191cdbf6011d98 /include/asm-x86/genapic_64.h | |
parent | 4c9961d56ec20c27ec5d02e49fd7427748312741 (diff) |
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>
Diffstat (limited to 'include/asm-x86/genapic_64.h')
-rw-r--r-- | include/asm-x86/genapic_64.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-x86/genapic_64.h b/include/asm-x86/genapic_64.h index 122b9242a40..8ff2589da93 100644 --- a/include/asm-x86/genapic_64.h +++ b/include/asm-x86/genapic_64.h | |||
@@ -28,7 +28,9 @@ struct genapic { | |||
28 | /* */ | 28 | /* */ |
29 | unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask); | 29 | unsigned int (*cpu_mask_to_apicid)(cpumask_t cpumask); |
30 | unsigned int (*phys_pkg_id)(int index_msb); | 30 | unsigned int (*phys_pkg_id)(int index_msb); |
31 | unsigned int (*read_apic_id)(void); | 31 | unsigned int (*get_apic_id)(unsigned long x); |
32 | unsigned long (*set_apic_id)(unsigned int id); | ||
33 | unsigned long apic_id_mask; | ||
32 | }; | 34 | }; |
33 | 35 | ||
34 | extern struct genapic *genapic; | 36 | extern struct genapic *genapic; |