From: Andi Kleen Date: Wed, 11 Jan 2006 21:45:00 +0000 (+0100) Subject: [PATCH] x86_64: Remove unused apic_write_atomic X-Git-Tag: v2.6.16-rc1~328 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d0db401ee4ee08857b79f1d3be40e8a819f8992;p=linux-2.6 [PATCH] x86_64: Remove unused apic_write_atomic This function is never used for x86_64. Signed-off-by: Brian Gerst Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/apic.h b/include/asm-x86_64/apic.h index 1768ce7191..f95847acd0 100644 --- a/include/asm-x86_64/apic.h +++ b/include/asm-x86_64/apic.h @@ -42,11 +42,6 @@ static __inline void apic_write(unsigned long reg, unsigned int v) *((volatile unsigned int *)(APIC_BASE+reg)) = v; } -static __inline void apic_write_atomic(unsigned long reg, unsigned int v) -{ - xchg((volatile unsigned int *)(APIC_BASE+reg), v); -} - static __inline unsigned int apic_read(unsigned long reg) { return *((volatile unsigned int *)(APIC_BASE+reg));