]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86_64: x86_64 version of the smp alternative patch.
authorGerd Hoffmann <kraxel@suse.de>
Mon, 26 Jun 2006 11:56:16 +0000 (13:56 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:14 +0000 (10:48 -0700)
commitd167a51877e94dda73dd656c51f363502309f713
treeeb02c2974b61777f575dfdc07d4c2adf83bde434
parent240cd6a80642da528bfa382ec2ae4e3cb8991ea7
[PATCH] x86_64: x86_64 version of the smp alternative patch.

Changes are largely identical to the i386 version:

 * alternative #define are moved to the new alternative.h file.
 * one new elf section with pointers to the lock prefixes which can be
   nop'ed out for non-smp.
 * two new elf sections simliar to the "classic" alternatives to
   replace SMP code with simpler UP code.
 * fixup headers to use alternative.h instead of defining their own
   LOCK / LOCK_PREFIX macros.

The patch reuses the i386 version of the alternatives code to avoid code
duplication.  The code in alternatives.c was shuffled around a bit to
reduce the number of #ifdefs needed.  It also got some tweaks needed for
x86_64 (vsyscall page handling) and new features (noreplacement option
which was x86_64 only up to now).  Debug printk's are changed from
compile-time to runtime.

Loosely based on a early version from Bastian Blank <waldi@debian.org>

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 files changed:
arch/i386/kernel/alternative.c
arch/x86_64/kernel/Makefile
arch/x86_64/kernel/module.c
arch/x86_64/kernel/setup.c
arch/x86_64/kernel/smpboot.c
arch/x86_64/kernel/vmlinux.lds.S
arch/x86_64/mm/init.c
include/asm-i386/alternative.h
include/asm-x86_64/alternative.h [new file with mode: 0644]
include/asm-x86_64/atomic.h
include/asm-x86_64/bitops.h
include/asm-x86_64/cpufeature.h
include/asm-x86_64/mutex.h
include/asm-x86_64/rwlock.h
include/asm-x86_64/semaphore.h
include/asm-x86_64/spinlock.h
include/asm-x86_64/system.h