linux/arch/blackfin/mach-common
Paul Gortmaker 13dff62d80 blackfin: delete __cpuinit usage from all blackfin 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/blackfin uses of the __cpuinit macros from
all C files.  Currently blackfin does not have any __CPUINIT used in
assembly files.

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

Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Bob Liu <lliubbo@gmail.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
Cc: uclinux-dist-devel@blackfin.uclinux.org
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:53 -04:00
..
arch_checks.c Blackfin: split optimization settings more 2011-03-18 04:01:03 -04:00
cache-c.c blackfin: delete __cpuinit usage from all blackfin files 2013-07-14 19:36:53 -04:00
cache.S Blackfin: SMP: work around anomaly 05000491 2011-03-18 04:01:04 -04:00
clock.h blackfin: bf60x: add clock support 2012-05-21 14:54:13 +08:00
clocks-init.c bfin: reorg clock init steps for bf609 2012-07-24 13:39:49 +08:00
dpmc_modes.S blackfin: bf60x: pm: Add a debug option to calculate kernel wakeup time. 2012-05-21 14:54:52 +08:00
dpmc.c ARCH: drivers remove __dev* attributes. 2013-01-03 15:57:13 -08:00
entry.S bfin: switch to generic vfork, get rid of pointless wrappers 2012-11-28 23:43:41 -05:00
head.S blackfin: add bf60x to current framework 2012-05-21 14:54:12 +08:00
interrupt.S Blackfin/ipipe: fix deferred pipeline sync for the root stage 2011-03-18 04:01:11 -04:00
ints-priority.c blackfin: delete __cpuinit usage from all blackfin files 2013-07-14 19:36:53 -04:00
Makefile cpufreq: blackfin: move cpufreq driver to drivers/cpufreq 2013-04-10 13:19:25 +02:00
pm.c bfin: pint: add pint suspend and resume 2012-07-24 13:39:51 +08:00
smp.c blackfin: delete __cpuinit usage from all blackfin files 2013-07-14 19:36:53 -04:00