x86, lib: Add wbinvd smp helpers
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:03 +0000 (16:01 +0100)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 23 Jan 2010 00:05:42 +0000 (16:05 -0800)
commita7b480e7f30b3813353ec009f10f2ac7a6669f3b
tree90ddc7a1ee6f1686699f77df39a3ff8a9d45d7a1
parent92dcffb916d309aa01778bf8963a6932e4014d07
x86, lib: Add wbinvd smp helpers

Add wbinvd_on_cpu and wbinvd_on_all_cpus stubs for executing wbinvd on a
particular CPU.

[ hpa: renamed lib/smp.c to lib/cache-smp.c ]
[ hpa: wbinvd_on_all_cpus() returns int, but wbinvd() returns
  void.  Thus, the former cannot be a macro for the latter,
  replace with an inline function. ]

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <1264172467-25155-2-git-send-email-bp@amd64.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/smp.h
arch/x86/lib/Makefile
arch/x86/lib/cache-smp.c [new file with mode: 0644]