]> git.itanic.dy.fi Git - linux-stable/commit
x86, lib: Add wbinvd smp helpers
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 22 Jan 2010 15:01:03 +0000 (16:01 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:47:56 +0000 (07:47 -0700)
commit7d4f404ff0b85103b84fd896c7217d34cc505d85
tree787c5419248c560b2011d56b075610ea0fd0916e
parent61190b356dfc400db691f1ea0311fed103fe8111
x86, lib: Add wbinvd smp helpers

commit a7b480e7f30b3813353ec009f10f2ac7a6669f3b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/smp.h
arch/x86/lib/Makefile
arch/x86/lib/cache-smp.c [new file with mode: 0644]