]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Delete __cpuinit usage from all users
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 24 Jun 2013 19:30:09 +0000 (15:30 -0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 1 Jul 2013 01:10:36 +0000 (11:10 +1000)
commit6ecb2bc895c0ee4cae7f3be511740afc7e2cd93b
tree76cec751a39b1f5294033c46170a219ef00507f5
parent49304697fcd2a0ce952e77c3cce5ba7fefb00672
powerpc: 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 97cf57b5e9 ("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.

This removes all the powerpc uses of the __cpuinit macros.  There
are no __CPUINIT users in assembly files in powerpc.

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

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Josh Boyer <jwboyer@gmail.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
19 files changed:
arch/powerpc/include/asm/rtas.h
arch/powerpc/include/asm/vdso.h
arch/powerpc/kernel/cacheinfo.c
arch/powerpc/kernel/rtas.c
arch/powerpc/kernel/smp.c
arch/powerpc/kernel/sysfs.c
arch/powerpc/kernel/time.c
arch/powerpc/kernel/vdso.c
arch/powerpc/mm/44x_mmu.c
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/mmu_context_nohash.c
arch/powerpc/mm/numa.c
arch/powerpc/mm/tlb_nohash.c
arch/powerpc/perf/core-book3s.c
arch/powerpc/platforms/44x/currituck.c
arch/powerpc/platforms/44x/iss4xx.c
arch/powerpc/platforms/85xx/smp.c
arch/powerpc/platforms/powermac/smp.c
arch/powerpc/platforms/powernv/smp.c