kernel_optimize_test/arch/sh/kernel/cpu
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
..
irq Disintegrate asm/system.h for SH 2012-03-28 18:30:03 +01:00
sh2 sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh2a sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh3 sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh4 sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh4a sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
sh5 sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
shmobile SH: cpuidle: use init/exit common routine 2013-04-24 13:58:32 +02:00
adc.c sh: Mass ctrl_in/outX to __raw_read/writeX conversion. 2010-01-26 12:58:40 +09:00
clock-cpg.c sh: move CLKDEV_xxx_ID macro to sh_clk.h 2011-07-11 15:07:25 +09:00
clock.c ARM: 6483/1: arm & sh: factorised duplicated clkdev.c 2010-11-26 10:51:04 +00:00
fpu.c sh: fix up fallout from system.h disintegration. 2012-03-30 19:29:57 +09:00
init.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
Makefile sh: Add PFC platform device registration helper function 2013-01-25 09:24:23 +09:00
pfc.c sh: Remove unused sh_pfc_register_info() function 2013-01-25 09:24:30 +09:00
proc.c Merge branches 'sh/wdt' and 'sh/rsk-updates' into sh-latest 2012-05-10 17:20:56 +09:00