[PATCH] hotplug CPU: clean up hotcpu_notifier() use
authorIngo Molnar <mingo@elte.hu>
Thu, 7 Dec 2006 04:38:17 +0000 (20:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:39 +0000 (08:39 -0800)
commit02316067852187b8bec781bec07410e91af79627
tree856e3f4610c91a6548bf3bf5c70ecbc0b28a4145
parenta38a44c1a93078fc5fadc4ac2df8dea4697069e2
[PATCH] hotplug CPU: clean up hotcpu_notifier() use

There was lots of #ifdef noise in the kernel due to hotcpu_notifier(fn,
prio) not correctly marking 'fn' as used in the !HOTPLUG_CPU case, and thus
generating compiler warnings of unused symbols, hence forcing people to add
#ifdefs.

the compiler can skip truly unused functions just fine:

    text    data     bss     dec     hex filename
 1624412  728710 3674856 6027978  5bfaca vmlinux.before
 1624412  728710 3674856 6027978  5bfaca vmlinux.after

[akpm@osdl.org: topology.c fix]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
25 files changed:
arch/i386/kernel/cpu/mcheck/therm_throt.c
arch/i386/kernel/cpuid.c
arch/i386/kernel/microcode.c
arch/i386/kernel/msr.c
arch/ia64/kernel/palinfo.c
arch/ia64/kernel/salinfo.c
arch/s390/appldata/appldata_base.c
arch/x86_64/kernel/mce.c
arch/x86_64/kernel/mce_amd.c
arch/x86_64/kernel/vsyscall.c
block/ll_rw_blk.c
drivers/base/topology.c
drivers/cpufreq/cpufreq.c
fs/buffer.c
include/linux/cpu.h
kernel/cpuset.c
kernel/profile.c
kernel/sched.c
kernel/workqueue.c
lib/radix-tree.c
mm/page_alloc.c
mm/swap.c
mm/vmscan.c
net/core/dev.c
net/core/flow.c