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

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

Cc: James Hogan <james.hogan@imgtec.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:54 -04:00
..
perf metag: delete __cpuinit usage from all metag files 2013-07-14 19:36:54 -04:00
.gitignore metag: Build infrastructure 2013-03-02 20:09:54 +00:00
Makefile metag: Add JTAG Debug Adapter (DA) support 2013-03-02 20:09:56 +00:00
asm-offsets.c metag: Build infrastructure 2013-03-02 20:09:54 +00:00
cachepart.c metag: panic if cache aliasing possible 2013-06-27 13:49:48 +01:00
clock.c metag: log core and timer frequencies from arch code 2013-06-13 12:55:27 +01:00
core_reg.c metag: SMP support 2013-03-02 20:09:51 +00:00
da.c metag: export _metag_da_present and cpu_2_hwthread_id 2013-03-27 14:37:52 +00:00
devtree.c metag: copy devicetree to non-init memory 2013-03-02 20:11:17 +00:00
dma.c metag: DMA 2013-03-02 20:09:51 +00:00
ftrace.c metag: ftrace support 2013-03-02 20:09:55 +00:00
ftrace_stub.S metag: ftrace support 2013-03-02 20:09:55 +00:00
head.S metag: smp: copy cache partition and enable GCOn 2013-03-15 13:21:17 +00:00
irq.c metag: cpu hotplug: route_irq: preserve irq mask 2013-07-02 14:12:22 +01:00
kick.c metag: kick: add missing irq_enter/exit to kick_handler() 2013-07-02 14:12:08 +01:00
machines.c metag: Boot 2013-03-02 20:09:17 +00:00
metag_ksyms.c metag: move EXPORT_SYMBOL(csum_partial) to metag_ksyms.c 2013-07-04 10:00:02 +01:00
module.c metag: Module support 2013-03-02 20:09:49 +00:00
perf_callchain.c metag: Perf 2013-03-02 20:09:54 +00:00
process.c dump_stack: unify debug information printed by show_regs() 2013-04-30 17:04:02 -07:00
ptrace.c metag: ptrace: Implement NT_METAG_TLS 2013-03-27 14:37:47 +00:00
setup.c metag/setup: Restrict scope for the capabilities variable 2013-06-13 12:55:29 +01:00
signal.c metag: Signal handling 2013-03-02 20:09:21 +00:00
smp.c metag: delete __cpuinit usage from all metag files 2013-07-14 19:36:54 -04:00
stacktrace.c metag: Stack unwinding 2013-03-02 20:09:52 +00:00
sys_metag.c metag: System Calls 2013-03-02 20:09:49 +00:00
tbiunexp.S metag: Traps 2013-03-02 20:09:45 +00:00
tcm.c metag: TCM support 2013-03-02 20:09:21 +00:00
time.c metag: init common clk and use "core" clk 2013-06-13 12:54:41 +01:00
topology.c metag: SMP support 2013-03-02 20:09:51 +00:00
traps.c metag: delete __cpuinit usage from all metag files 2013-07-14 19:36:54 -04:00
user_gateway.S metag: System Calls 2013-03-02 20:09:49 +00:00
vmlinux.lds.S metag: Build infrastructure 2013-03-02 20:09:54 +00:00