]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: Create clflush() inline, remove hardcoded wbinvd
authorH. Peter Anvin <hpa@zytor.com>
Wed, 17 Oct 2007 16:04:37 +0000 (18:04 +0200)
committerThomas Gleixner <tglx@inhelltoy.tec.linutronix.de>
Wed, 17 Oct 2007 18:16:12 +0000 (20:16 +0200)
commit6619a8fb594486363783cc4a8372e4d4ee4b913e
tree83130702b16dae3ccae5be54acd18993474ff757
parent9689ba8ad0dc27c0a2ce40eb4c0f8fb66551119c
x86: Create clflush() inline, remove hardcoded wbinvd

Create an inline function for clflush(), with the proper arguments,
and use it instead of hard-coding the instruction.

This also removes one instance of hard-coded wbinvd, based on a patch
by Bauder de Oliveira Costa.

[ tglx: arch/x86 adaptation ]

Cc: Andi Kleen <andi@firstfloor.org>
Cc: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tce_64.c
arch/x86/mm/pageattr_32.c
arch/x86/mm/pageattr_64.c
drivers/char/agp/efficeon-agp.c
include/asm-x86/system_32.h
include/asm-x86/system_64.h