linux/arch/sh/kernel
Paul Gortmaker 4603f53a1d sh: delete __cpuinit usage from all sh 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.

Note that some harmless section mismatch warnings may result, since
notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
are flagged as __cpuinit  -- so if we remove the __cpuinit from
arch specific callers, we will also get section mismatch warnings.
As an intermediate step, we intend to turn the linux/init.h cpuinit
content into no-ops as early as possible, since that will get rid
of these warnings.  In any case, they are temporary and harmless.

This removes all the arch/sh uses of the __cpuinit macros from
all C files.  Currently sh does not have any __CPUINIT used in
assembly files.

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

Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:53 -04:00
..
cpu sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
vsyscall
.gitignore
Makefile cpufreq: sh: move cpufreq driver to drivers/cpufreq 2013-04-10 13:19:25 +02:00
asm-offsets.c
crash_dump.c
debugtraps.S
disassemble.c
dma-nommu.c
dumpstack.c dump_stack: consolidate dump_stack() implementations and unify their behaviors 2013-04-30 17:04:02 -07:00
dwarf.c
entry-common.S
ftrace.c
head_32.S
head_64.S
hw_breakpoint.c
idle.c sh: Use generic idle loop 2013-04-08 17:39:28 +02:00
io.c
io_trapped.c
iomap.c
ioport.c
irq.c
irq_32.c
irq_64.c
kdebugfs.c
kgdb.c
kprobes.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
localtimer.c
machine_kexec.c
machvec.c
module.c
nmi_debug.c
perf_callchain.c
perf_event.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
process.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
process_32.c dump_stack: unify debug information printed by show_regs() 2013-04-30 17:04:02 -07:00
process_64.c dump_stack: unify debug information printed by show_regs() 2013-04-30 17:04:02 -07:00
ptrace.c
ptrace_32.c ptrace/sh: revert "hw_breakpoints: Fix racy access to ptrace breakpoints" 2013-07-09 10:33:26 -07:00
ptrace_64.c
reboot.c
relocate_kernel.S
return_address.c
setup.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh_bios.c early_printk: consolidate random copies of identical code 2013-04-29 18:28:13 -07:00
sh_ksyms_32.c
sh_ksyms_64.c
signal_32.c
signal_64.c
smp.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
stacktrace.c
swsusp.c
sys_sh.c
sys_sh32.c
syscalls_32.S
syscalls_64.S
time.c
topology.c
traps.c
traps_32.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
traps_64.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
unwinder.c
vmlinux.lds.S