]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kernel: delete __cpuinit usage from all core kernel files
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 19 Jun 2013 18:53:51 +0000 (14:53 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 14 Jul 2013 23:36:59 +0000 (19:36 -0400)
commit0db0628d90125193280eabb501c94feaf48fa9ab
tree0e0ef0c4eac101d25a3bd125c4a9200ac4d294c0
parent49fb4c6290c70c418a5c25eee996d6b55ea132d6
kernel: delete __cpuinit usage from all core kernel files

The __cpuinit type of throwaway sections might have made sense
some time ago when RAM was more constrained, but now the savings
do not offset the cost and complications.  For example, the fix in
commit 5e427ec2d0 ("x86: Fix bit corruption at CPU resume time")
is a good example of the nasty type of bugs that can be created
with improper use of the various __init prefixes.

After a discussion on LKML[1] it was decided that cpuinit should go
the way of devinit and be phased out.  Once all the users are gone,
we can then finally remove the macros themselves from linux/init.h.

This removes all the uses of the __cpuinit macros from C files in
the core kernel directories (kernel, init, lib, mm, and include)
that don't really have a specific maintainer.

[1] https://lkml.org/lkml/2013/5/20/589

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
27 files changed:
Documentation/cpu-hotplug.txt
include/linux/cpu.h
include/linux/perf_event.h
init/calibrate.c
kernel/cpu.c
kernel/events/core.c
kernel/fork.c
kernel/hrtimer.c
kernel/printk.c
kernel/profile.c
kernel/relay.c
kernel/sched/core.c
kernel/sched/fair.c
kernel/smp.c
kernel/smpboot.c
kernel/softirq.c
kernel/time/tick-sched.c
kernel/timer.c
kernel/workqueue.c
lib/Kconfig.debug
lib/earlycpio.c
lib/percpu_counter.c
mm/memcontrol.c
mm/page-writeback.c
mm/slab.c
mm/slub.c
mm/vmstat.c