linux/arch/cris/arch-v32/kernel
Paul Gortmaker 2de6c0bd68 cris: delete __cpuinit usage from all cris 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/cris uses of the __cpuinit macros from
all C files.  Currently cris does not have any __CPUINIT used in
assembly files.

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

Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: linux-cris-kernel@axis.com
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:54 -04:00
..
Makefile CRISv32: Remove obsolete vcs_hook.o from Makefile 2009-04-21 13:10:33 +02:00
cache.c [CRIS] Move header files from include to arch/cris/include. 2008-10-29 17:29:44 +01:00
cacheflush.S CRIS: Add debug for assembler functions 2010-08-04 12:59:43 +02:00
crisksyms.c CRIS: Don't use mask_irq as symbol name 2010-05-25 17:48:14 +02:00
debugport.c Disintegrate asm/system.h for CRIS 2012-03-28 18:30:02 +01:00
entry.S cris: switch to generic kernel_execve/sys_execve 2012-10-14 23:12:33 -04:00
fasttimer.c cris: single_open() leaks 2013-05-05 00:07:52 -04:00
head.S CRIS: Remove VCS simulator specific code 2012-10-03 09:57:01 +02:00
irq.c cris: convert old cpumask API into new one 2011-05-25 08:39:39 -07:00
kgdb.c CRIS: Remove VCS simulator specific code 2012-10-03 09:57:01 +02:00
kgdb_asm.S CRIS: v32: Correct path for intr_vect.h 2010-08-04 13:00:53 +02:00
process.c dump_stack: unify debug information printed by show_regs() 2013-04-30 17:04:02 -07:00
ptrace.c cris:removed the unused variable 2012-04-03 13:09:18 +02:00
setup.c CRIS: More ARTPEC-3 support and i2c-boardinfo. 2010-08-04 13:01:50 +02:00
signal.c cris: kill weird arguments of sys_{rt_,}sigreturn() 2013-02-03 18:15:54 -05:00
smp.c cris: delete __cpuinit usage from all cris files 2013-07-14 19:36:54 -04:00
time.c CRIS: Remove legacy RTC drivers 2012-04-05 11:55:58 +02:00
traps.c CRIS: Minor formatting fix in traps.c 2010-08-04 13:02:15 +02:00