linux-stable/arch/xtensa
Paul Gortmaker 6cb4c159b0 xtensa: delete __cpuinit usage from all xtensa 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/xtensa uses of the __cpuinit macros from
all C files.  Currently xtensa does not have any __CPUINIT used in
assembly files.

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

Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-xtensa@linux-xtensa.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:56 -04:00
..
boot xtensa: add static function tracer support 2013-07-08 01:18:57 -07:00
configs xtensa: remove explicit selection of GENERIC_GPIO 2013-03-20 22:48:15 +09:00
include Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-07-13 17:42:22 -07:00
kernel xtensa: delete __cpuinit usage from all xtensa files 2013-07-14 19:36:56 -04:00
lib xtensa: clean up files to make them code-style compliant 2012-12-18 21:10:25 -08:00
mm Xtensa patchset for v3.11-rc1 2013-07-11 12:30:33 -07:00
oprofile xtensa: fix oprofile building as module 2013-05-09 01:07:09 -07:00
platforms xtensa: remove the second argument of __bio_kmap_atomic() 2013-07-08 01:23:15 -07:00
variants xtensa: consolidate ccount access routines 2013-07-08 01:11:37 -07:00
Kconfig xtensa: add static function tracer support 2013-07-08 01:18:57 -07:00
Kconfig.debug xtensa: check TLB sanity on return to userspace 2013-07-08 01:18:56 -07:00
Makefile xtensa: add support for oprofile 2013-02-23 19:22:54 -08:00