[PATCH] SMP alternatives: skip with UP kernels
authorGerd Hoffmann <kraxel@suse.de>
Sat, 1 Jul 2006 11:36:18 +0000 (04:36 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 1 Jul 2006 16:56:02 +0000 (09:56 -0700)
commit8ec4d41f88872e6a5980558e362c0174dce54e40
treef02eaf6b61832ded30bc19bd8e5d8494d91f8bc6
parent27b678dd04a636f2c351816f4b3042c8815d4e9d
[PATCH] SMP alternatives: skip with UP kernels

Hide the magic in alternative.h and provide some dummy inline functions
for the UP case (gcc should manage to optimize away these calls).  No
changes in module.c.

Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/alternative.c
include/asm-i386/alternative.h
include/asm-x86_64/alternative.h