diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-07-10 14:16:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-12 02:44:59 -0400 |
commit | 1b374e4d6f8b3eb2fcd034fcc24ea8ba1dfde7aa (patch) | |
tree | faf5aa00e344e473957206bc82ffbb746e438d0b /include/asm-x86/paravirt.h | |
parent | 2d7a66d02e11af9ab8e16c76d22767e622b4e3d7 (diff) |
x64, x2apic/intr-remap: basic apic ops support
Introduce basic apic operations which handle the apic programming. This
will be used later to introduce another specific operations for x2apic.
For the perfomance critial accesses like IPI's, EOI etc, we use the
native operations as they are already referenced by different
indirections like genapic, irq_chip etc.
64bit Paravirt ops can also define their apic operations accordingly.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: akpm@linux-foundation.org
Cc: arjan@linux.intel.com
Cc: andi@firstfloor.org
Cc: ebiederm@xmission.com
Cc: jbarnes@virtuousgeek.org
Cc: steiner@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/paravirt.h')
-rw-r--r-- | include/asm-x86/paravirt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/paravirt.h b/include/asm-x86/paravirt.h index ef5e8ec6a6ab..10adac02e6db 100644 --- a/include/asm-x86/paravirt.h +++ b/include/asm-x86/paravirt.h | |||
@@ -891,6 +891,7 @@ static inline void slow_down_io(void) | |||
891 | /* | 891 | /* |
892 | * Basic functions accessing APICs. | 892 | * Basic functions accessing APICs. |
893 | */ | 893 | */ |
894 | #ifndef CONFIG_X86_64 | ||
894 | static inline void apic_write(unsigned long reg, u32 v) | 895 | static inline void apic_write(unsigned long reg, u32 v) |
895 | { | 896 | { |
896 | PVOP_VCALL2(pv_apic_ops.apic_write, reg, v); | 897 | PVOP_VCALL2(pv_apic_ops.apic_write, reg, v); |
@@ -905,6 +906,7 @@ static inline u32 apic_read(unsigned long reg) | |||
905 | { | 906 | { |
906 | return PVOP_CALL1(unsigned long, pv_apic_ops.apic_read, reg); | 907 | return PVOP_CALL1(unsigned long, pv_apic_ops.apic_read, reg); |
907 | } | 908 | } |
909 | #endif | ||
908 | 910 | ||
909 | static inline void setup_boot_clock(void) | 911 | static inline void setup_boot_clock(void) |
910 | { | 912 | { |