linux-pinenote/arch/x86/kernel/cpu/mcheck
Paul Gortmaker 148f9bb877 x86: delete __cpuinit usage from all x86 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/x86 uses of the __cpuinit macros from
all C files.  x86 only had the one __CPUINIT used in assembly files,
and it wasn't paired off with a .previous or a __FINIT, so we can
delete it directly w/o any corresponding additional change there.

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

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
2013-07-14 19:36:56 -04:00
..
Makefile ACPI, APEI, Generic Hardware Error Source memory error support 2010-05-19 22:41:16 -04:00
mce-apei.c x86/mce Add validation check before GHES error is recorded 2012-04-20 16:02:05 -07:00
mce-inject.c x86, mce: Fix "braodcast" typo 2013-06-05 11:59:17 +02:00
mce-internal.h x86, MCA: Finish mca_config conversion 2012-10-26 14:37:58 +02:00
mce-severity.c x86/mce: Update MCE severity condition check 2013-06-27 13:45:52 -07:00
mce.c x86: delete __cpuinit usage from all x86 files 2013-07-14 19:36:56 -04:00
mce_amd.c x86: delete __cpuinit usage from all x86 files 2013-07-14 19:36:56 -04:00
mce_intel.c mce: acpi/apei: Add comments to clarify usage of the various bitfields in the MCA subsystem 2013-06-25 13:53:27 -07:00
p5.c taint: add explicit flag to show whether lock dep is still OK. 2013-01-21 17:17:57 +10:30
therm_throt.c x86: delete __cpuinit usage from all x86 files 2013-07-14 19:36:56 -04:00
threshold.c x86, trace: Add irq vector tracepoints 2013-06-20 22:25:34 -07:00
winchip.c taint: add explicit flag to show whether lock dep is still OK. 2013-01-21 17:17:57 +10:30