aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/mca.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2013-06-17 15:51:20 -0400
committerTony Luck <tony.luck@intel.com>2013-06-24 18:44:27 -0400
commitccce9bb83ed20bca52f82ff9d7cf889d23a2ec01 (patch)
tree92603d8bec61c30766dd0ae9e46fff1b6416131e /arch/ia64/kernel/mca.c
parent69cbc0464d87bfa38c0a4fe4d8bb751c1ec8cedf (diff)
[IA64] Delete __cpuinit usage from all ia64 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. This removes all the ia64 uses of the __cpuinit macros. [1] https://lkml.org/lkml/2013/5/20/589 Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/mca.c')
-rw-r--r--arch/ia64/kernel/mca.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index d7396dbb07bb..b8edfa75a83f 100644
--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -631,7 +631,7 @@ ia64_mca_register_cpev (int cpev)
631 * Outputs 631 * Outputs
632 * None 632 * None
633 */ 633 */
634void __cpuinit 634void
635ia64_mca_cmc_vector_setup (void) 635ia64_mca_cmc_vector_setup (void)
636{ 636{
637 cmcv_reg_t cmcv; 637 cmcv_reg_t cmcv;
@@ -1814,7 +1814,7 @@ static struct irqaction mca_cpep_irqaction = {
1814 * format most of the fields. 1814 * format most of the fields.
1815 */ 1815 */
1816 1816
1817static void __cpuinit 1817static void
1818format_mca_init_stack(void *mca_data, unsigned long offset, 1818format_mca_init_stack(void *mca_data, unsigned long offset,
1819 const char *type, int cpu) 1819 const char *type, int cpu)
1820{ 1820{
@@ -1844,7 +1844,7 @@ static void * __init_refok mca_bootmem(void)
1844} 1844}
1845 1845
1846/* Do per-CPU MCA-related initialization. */ 1846/* Do per-CPU MCA-related initialization. */
1847void __cpuinit 1847void
1848ia64_mca_cpu_init(void *cpu_data) 1848ia64_mca_cpu_init(void *cpu_data)
1849{ 1849{
1850 void *pal_vaddr; 1850 void *pal_vaddr;
@@ -1896,7 +1896,7 @@ ia64_mca_cpu_init(void *cpu_data)
1896 PAGE_KERNEL)); 1896 PAGE_KERNEL));
1897} 1897}
1898 1898
1899static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy) 1899static void ia64_mca_cmc_vector_adjust(void *dummy)
1900{ 1900{
1901 unsigned long flags; 1901 unsigned long flags;
1902 1902
@@ -1906,7 +1906,7 @@ static void __cpuinit ia64_mca_cmc_vector_adjust(void *dummy)
1906 local_irq_restore(flags); 1906 local_irq_restore(flags);
1907} 1907}
1908 1908
1909static int __cpuinit mca_cpu_callback(struct notifier_block *nfb, 1909static int mca_cpu_callback(struct notifier_block *nfb,
1910 unsigned long action, 1910 unsigned long action,
1911 void *hcpu) 1911 void *hcpu)
1912{ 1912{
@@ -1922,7 +1922,7 @@ static int __cpuinit mca_cpu_callback(struct notifier_block *nfb,
1922 return NOTIFY_OK; 1922 return NOTIFY_OK;
1923} 1923}
1924 1924
1925static struct notifier_block mca_cpu_notifier __cpuinitdata = { 1925static struct notifier_block mca_cpu_notifier = {
1926 .notifier_call = mca_cpu_callback 1926 .notifier_call = mca_cpu_callback
1927}; 1927};
1928 1928