OpenCloudOS-Kernel/arch/arm64/kernel
Paul Gortmaker b8c6453aaf arm64: delete __cpuinit usage from all users
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/arm64 uses of the __cpuinit macros from
all C files.  Currently arm64 does not have any __CPUINIT used in
assembly files.

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

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:52 -04:00
..
vdso arm64: vdso: remove broken, redundant sequence counting for timezones 2013-01-10 10:43:43 +00:00
.gitignore arm64: Build infrastructure 2012-09-17 13:42:21 +01:00
Makefile arm64: SMP: enable PSCI boot method 2013-01-29 16:56:37 +00:00
arm64ksyms.c arm64: kernel: compiling issue, need 'EXPORT_SYMBOL(clear_page)' 2013-05-24 17:31:03 +01:00
asm-offsets.c arm64: KVM: Kconfig integration 2013-07-04 14:40:26 +02:00
cputable.c arm64: CPU support 2012-09-17 13:41:59 +01:00
debug-monitors.c arm64: delete __cpuinit usage from all users 2013-07-14 19:36:52 -04:00
early_printk.c arm64: Fix duplicate definition of early_console 2013-05-13 11:44:53 +01:00
entry-fpsimd.S arm64: move FP-SIMD save/restore code to a macro 2012-12-05 11:26:50 +00:00
entry.S arm64: treat unhandled compat el0 traps as undef 2013-05-31 16:04:44 +01:00
fpsimd.c arm64: Floating point and SIMD 2012-09-17 13:42:13 +01:00
head.S arm64: head: match all affinity levels in the pen of the secondaries 2013-03-20 18:09:42 +00:00
hw_breakpoint.c arm64: delete __cpuinit usage from all users 2013-07-14 19:36:52 -04:00
hyp-stub.S arm64: add hypervisor stub 2012-12-05 11:26:49 +00:00
io.c arm64: Device specific operations 2012-09-17 13:42:04 +01:00
irq.c arm64: Use irqchip_init() for interrupt controller initialisation 2013-03-26 16:02:23 +00:00
kuser32.S arm64: 32-bit (compat) applications support 2012-09-17 13:42:12 +01:00
module.c arm64: Loadable modules 2012-09-17 13:42:19 +01:00
perf_event.c perf: arm64: Record the user-mode PC in the call chain. 2013-06-20 10:16:39 +01:00
process.c - Since drivers/irqchip/irq-gic.c no longer has dependencies on arm32 2013-05-08 15:15:27 -07:00
psci.c arm64: psci: add support for PSCI invocations from the kernel 2013-01-29 16:56:37 +00:00
ptrace.c arm64: debug: consolidate software breakpoint handlers 2013-06-12 11:23:02 +01:00
setup.c arm64: Invoke the of_platform_populate() at arch_initcall() level 2013-05-14 15:44:46 +01:00
signal.c arm64: switch to generic sigaltstack 2013-02-14 09:17:29 -05:00
signal32.c arm64: Removed unused variable in compat_setup_rt_frame() 2013-03-18 10:12:56 +00:00
smp.c arm64: delete __cpuinit usage from all users 2013-07-14 19:36:52 -04:00
smp_psci.c arm64: psci: Use the MPIDR values from cpu_logical_map for cpu ids. 2013-03-26 11:58:10 +00:00
smp_spin_table.c arm64: SMP: rework the SMP code to be enabling method agnostic 2013-01-29 16:56:37 +00:00
stacktrace.c arm64: Exception handling 2012-09-17 10:24:46 +01:00
sys.c arm64: switch to generic sigaltstack 2013-02-14 09:17:29 -05:00
sys32.S unify compat fanotify_mark(2), switch to COMPAT_SYSCALL_DEFINE 2013-05-09 13:46:38 -04:00
sys_compat.c compat: generic compat_sys_sched_rr_get_interval() implementation 2012-12-17 17:15:18 -08:00
time.c arm64: kernel: compiling issue, need delete read_current_timer() 2013-06-10 17:58:20 +01:00
traps.c arm64: debug: consolidate software breakpoint handlers 2013-06-12 11:23:02 +01:00
vdso.c arm64: vdso: remove broken, redundant sequence counting for timezones 2013-01-10 10:43:43 +00:00
vmlinux.lds.S Merge branch 'kvm-arm64/kvm-for-3.11' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into upstream 2013-06-12 16:48:38 +01:00