diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-07-18 18:58:35 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-19 17:44:30 -0400 |
commit | f586bf7df9acc26b68b0feefc0dd32fa63516d3a (patch) | |
tree | fcf2e5a1ee63253ff4eeff407fba0dd45b47439c | |
parent | 9553e11325e3d44a8c8a1428c7e5f146f1cc7238 (diff) |
x86: APIC: Remove apic_write_around(); use alternatives, merge fix
On Fri, Jul 18, 2008 at 02:03:48PM -0700, Ingo Molnar wrote:
>
> * Yinghai Lu <yhlu.kernel@gmail.com> wrote:
>
> > > git merge tip/x86/x2apic
> > CONFLICT (content): Merge conflict in arch/x86/kernel/Makefile
> > CONFLICT (content): Merge conflict in arch/x86/kernel/paravirt.c
> > CONFLICT (content): Merge conflict in arch/x86/kernel/smpboot.c
> > CONFLICT (content): Merge conflict in arch/x86/kernel/vmi_32.c
> > CONFLICT (content): Merge conflict in arch/x86/xen/enlighten.c
> > CONFLICT (content): Merge conflict in include/asm-x86/apic.h
> > CONFLICT (content): Merge conflict in include/asm-x86/paravirt.h
>
> that's due to the changes in tip/x86/apic and in tip/x86/uv.
>
> ok, i've just merged x86/apic into x86/x2apic and x86/uv as well, and
> pushed out the result.
>
> Note: it's a first raw merge and completely untested. It will now merge
> cleanly into tip/master. There are probably a few details missing.
Ingo, thanks for doing this. While I was testing my merge changes, you posted
yours... anyhow we need this piece, which is missing from your merge.
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Yinghai Lu <yhlu.kernel@gmail.com>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Zachary Amsden <zach@vmware.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/apic_32.c | 5 | ||||
-rw-r--r-- | arch/x86/kernel/apic_64.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c index dcb897f22aa2..8728f54a93d8 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -174,8 +174,8 @@ u32 safe_xapic_wait_icr_idle(void) | |||
174 | 174 | ||
175 | void xapic_icr_write(u32 low, u32 id) | 175 | void xapic_icr_write(u32 low, u32 id) |
176 | { | 176 | { |
177 | apic_write_around(APIC_ICR2, SET_APIC_DEST_FIELD(id)); | 177 | apic_write(APIC_ICR2, SET_APIC_DEST_FIELD(id)); |
178 | apic_write_around(APIC_ICR, low); | 178 | apic_write(APIC_ICR, low); |
179 | } | 179 | } |
180 | 180 | ||
181 | u64 xapic_icr_read(void) | 181 | u64 xapic_icr_read(void) |
@@ -191,7 +191,6 @@ u64 xapic_icr_read(void) | |||
191 | static struct apic_ops xapic_ops = { | 191 | static struct apic_ops xapic_ops = { |
192 | .read = native_apic_mem_read, | 192 | .read = native_apic_mem_read, |
193 | .write = native_apic_mem_write, | 193 | .write = native_apic_mem_write, |
194 | .write_atomic = native_apic_mem_write_atomic, | ||
195 | .icr_read = xapic_icr_read, | 194 | .icr_read = xapic_icr_read, |
196 | .icr_write = xapic_icr_write, | 195 | .icr_write = xapic_icr_write, |
197 | .wait_icr_idle = xapic_wait_icr_idle, | 196 | .wait_icr_idle = xapic_wait_icr_idle, |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index 46e612408aca..a850bc63fb1c 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -167,7 +167,6 @@ u64 xapic_icr_read(void) | |||
167 | static struct apic_ops xapic_ops = { | 167 | static struct apic_ops xapic_ops = { |
168 | .read = native_apic_mem_read, | 168 | .read = native_apic_mem_read, |
169 | .write = native_apic_mem_write, | 169 | .write = native_apic_mem_write, |
170 | .write_atomic = native_apic_mem_write_atomic, | ||
171 | .icr_read = xapic_icr_read, | 170 | .icr_read = xapic_icr_read, |
172 | .icr_write = xapic_icr_write, | 171 | .icr_write = xapic_icr_write, |
173 | .wait_icr_idle = xapic_wait_icr_idle, | 172 | .wait_icr_idle = xapic_wait_icr_idle, |
@@ -206,7 +205,6 @@ u64 x2apic_icr_read(void) | |||
206 | static struct apic_ops x2apic_ops = { | 205 | static struct apic_ops x2apic_ops = { |
207 | .read = native_apic_msr_read, | 206 | .read = native_apic_msr_read, |
208 | .write = native_apic_msr_write, | 207 | .write = native_apic_msr_write, |
209 | .write_atomic = native_apic_msr_write, | ||
210 | .icr_read = x2apic_icr_read, | 208 | .icr_read = x2apic_icr_read, |
211 | .icr_write = x2apic_icr_write, | 209 | .icr_write = x2apic_icr_write, |
212 | .wait_icr_idle = x2apic_wait_icr_idle, | 210 | .wait_icr_idle = x2apic_wait_icr_idle, |