linux-sg2042/arch/sh/kernel/cpu/sh4a
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
..
Makefile sh: replace CONFIG_GENERIC_GPIO by CONFIG_GPIOLIB 2013-03-20 22:48:15 +09:00
clock-sh7343.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7366.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7722.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7723.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7724.c sh_eth: get SH7724 support out of #ifdef 2013-06-07 23:38:24 -07:00
clock-sh7734.c sh_eth: get SH77{34|63} support out of #ifdef 2013-06-07 23:38:24 -07:00
clock-sh7757.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7763.c sh: sh4a sh_clk_ops rename 2012-03-12 22:19:12 +01:00
clock-sh7770.c sh: sh4a sh_clk_ops rename 2012-03-12 22:19:12 +01:00
clock-sh7780.c sh: sh4a sh_clk_ops rename 2012-03-12 22:19:12 +01:00
clock-sh7785.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-sh7786.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
clock-shx3.c sh: Convert sh_clk_mstp32_register to sh_clk_mstp_register 2012-06-28 16:45:34 +09:00
intc-shx3.c sh: Support userimask for all SH-X3 interrupt controllers. 2010-10-02 00:43:43 +09:00
perf_event.c perf, arch: Add generic NODE cache events 2011-07-01 11:06:38 +02:00
pinmux-sh7722.c sh: sh7722: Add pin control resources 2013-03-15 13:33:51 +01:00
pinmux-sh7723.c sh: sh7723: Add pin control resources 2013-03-15 13:33:51 +01:00
pinmux-sh7724.c sh: sh7724: Add pin control resources 2013-03-15 13:33:51 +01:00
pinmux-sh7734.c sh: sh7734: pinmux: Use driver-provided pinmux info 2013-01-25 09:24:30 +09:00
pinmux-sh7757.c sh: sh7757: Add pin control resources 2013-03-15 13:33:52 +01:00
pinmux-sh7785.c sh: sh7785: Add pin control resources 2013-03-15 13:33:52 +01:00
pinmux-sh7786.c sh: sh7786: Add pin control resources 2013-03-15 13:33:52 +01:00
pinmux-shx3.c sh: shx3: Add pin control resources 2013-03-15 13:33:52 +01:00
serial-sh7722.c serial: sh-sci: Abstract register maps. 2011-06-14 12:40:19 +09:00
setup-sh7343.c sh: sh7343 evt2irq migration. 2012-05-18 12:38:12 +09:00
setup-sh7366.c sh: sh7366 evt2irq migration. 2012-05-18 12:43:11 +09:00
setup-sh7722.c sh: explicitly include sh_dma.h in setup-sh7722.c 2012-08-02 15:37:26 +09:00
setup-sh7723.c sh: sh7723 evt2irq migration. 2012-05-18 12:57:59 +09:00
setup-sh7724.c sh: sh7724 evt2irq migration. 2012-05-18 13:12:24 +09:00
setup-sh7734.c sh: Add initial support for SH7734 CPU subtype 2012-04-17 16:20:23 +09:00
setup-sh7757.c sh: convert boards to use the OHCI platform driver 2012-10-22 11:26:54 -07:00
setup-sh7763.c sh: convert boards to use the OHCI platform driver 2012-10-22 11:26:54 -07:00
setup-sh7770.c sh: sh7770 evt2irq migration. 2012-05-18 13:52:22 +09:00
setup-sh7780.c sh: sh7780 evt2irq migration. 2012-05-18 13:59:18 +09:00
setup-sh7785.c sh: sh7785 evt2irq migration. 2012-05-18 14:04:49 +09:00
setup-sh7786.c sh: convert boards to use the OHCI platform driver 2012-10-22 11:26:54 -07:00
setup-shx3.c sh: intc: Kill off special reservation interface. 2012-05-22 19:07:55 +09:00
smp-shx3.c sh: delete __cpuinit usage from all sh files 2013-07-14 19:36:53 -04:00
ubc.c sh: Abstracted SH-4A UBC support on hw-breakpoint core. 2010-01-05 19:06:45 +09:00