aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/apic_32.c2
-rw-r--r--arch/x86/kernel/apic_64.c2
-rw-r--r--arch/x86/kernel/io_apic_32.c4
-rw-r--r--arch/x86/kernel/io_apic_64.c6
-rw-r--r--arch/x86/kernel/smpboot_32.c2
-rw-r--r--arch/x86/kernel/smpboot_64.c2
6 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index 69a13d127da3..4c014fca2057 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -152,7 +152,7 @@ u32 safe_apic_wait_icr_idle(void)
152/** 152/**
153 * enable_NMI_through_LVT0 - enable NMI through local vector table 0 153 * enable_NMI_through_LVT0 - enable NMI through local vector table 0
154 */ 154 */
155void enable_NMI_through_LVT0 (void * dummy) 155void __cpuinit enable_NMI_through_LVT0(void)
156{ 156{
157 unsigned int v = APIC_DM_NMI; 157 unsigned int v = APIC_DM_NMI;
158 158
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index ab4ae50399fd..47b8ef51dde0 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -130,7 +130,7 @@ u32 safe_apic_wait_icr_idle(void)
130/** 130/**
131 * enable_NMI_through_LVT0 - enable NMI through local vector table 0 131 * enable_NMI_through_LVT0 - enable NMI through local vector table 0
132 */ 132 */
133void enable_NMI_through_LVT0(void *dummy) 133void __cpuinit enable_NMI_through_LVT0(void)
134{ 134{
135 unsigned int v; 135 unsigned int v;
136 136
diff --git a/arch/x86/kernel/io_apic_32.c b/arch/x86/kernel/io_apic_32.c
index 76f11c3e3906..0d204237489e 100644
--- a/arch/x86/kernel/io_apic_32.c
+++ b/arch/x86/kernel/io_apic_32.c
@@ -2078,7 +2078,7 @@ static struct irq_chip lapic_chip __read_mostly = {
2078 .eoi = ack_apic, 2078 .eoi = ack_apic,
2079}; 2079};
2080 2080
2081static void setup_nmi (void) 2081static void __init setup_nmi(void)
2082{ 2082{
2083 /* 2083 /*
2084 * Dirty trick to enable the NMI watchdog ... 2084 * Dirty trick to enable the NMI watchdog ...
@@ -2091,7 +2091,7 @@ static void setup_nmi (void)
2091 */ 2091 */
2092 apic_printk(APIC_VERBOSE, KERN_INFO "activating NMI Watchdog ..."); 2092 apic_printk(APIC_VERBOSE, KERN_INFO "activating NMI Watchdog ...");
2093 2093
2094 on_each_cpu(enable_NMI_through_LVT0, NULL, 1, 1); 2094 enable_NMI_through_LVT0();
2095 2095
2096 apic_printk(APIC_VERBOSE, " done.\n"); 2096 apic_printk(APIC_VERBOSE, " done.\n");
2097} 2097}
diff --git a/arch/x86/kernel/io_apic_64.c b/arch/x86/kernel/io_apic_64.c
index fa70005be5e8..f914d84a21da 100644
--- a/arch/x86/kernel/io_apic_64.c
+++ b/arch/x86/kernel/io_apic_64.c
@@ -1566,7 +1566,7 @@ static struct hw_interrupt_type lapic_irq_type __read_mostly = {
1566 .end = end_lapic_irq, 1566 .end = end_lapic_irq,
1567}; 1567};
1568 1568
1569static void setup_nmi (void) 1569static void __init setup_nmi(void)
1570{ 1570{
1571 /* 1571 /*
1572 * Dirty trick to enable the NMI watchdog ... 1572 * Dirty trick to enable the NMI watchdog ...
@@ -1579,7 +1579,7 @@ static void setup_nmi (void)
1579 */ 1579 */
1580 printk(KERN_INFO "activating NMI Watchdog ..."); 1580 printk(KERN_INFO "activating NMI Watchdog ...");
1581 1581
1582 enable_NMI_through_LVT0(NULL); 1582 enable_NMI_through_LVT0();
1583 1583
1584 printk(" done.\n"); 1584 printk(" done.\n");
1585} 1585}
@@ -1655,7 +1655,7 @@ static inline void unlock_ExtINT_logic(void)
1655 * 1655 *
1656 * FIXME: really need to revamp this for modern platforms only. 1656 * FIXME: really need to revamp this for modern platforms only.
1657 */ 1657 */
1658static inline void check_timer(void) 1658static inline void __init check_timer(void)
1659{ 1659{
1660 struct irq_cfg *cfg = irq_cfg + 0; 1660 struct irq_cfg *cfg = irq_cfg + 0;
1661 int apic1, pin1, apic2, pin2; 1661 int apic1, pin1, apic2, pin2;
diff --git a/arch/x86/kernel/smpboot_32.c b/arch/x86/kernel/smpboot_32.c
index 0f294d6e22cf..2034332ad080 100644
--- a/arch/x86/kernel/smpboot_32.c
+++ b/arch/x86/kernel/smpboot_32.c
@@ -404,7 +404,7 @@ static void __cpuinit start_secondary(void *unused)
404 setup_secondary_clock(); 404 setup_secondary_clock();
405 if (nmi_watchdog == NMI_IO_APIC) { 405 if (nmi_watchdog == NMI_IO_APIC) {
406 disable_8259A_irq(0); 406 disable_8259A_irq(0);
407 enable_NMI_through_LVT0(NULL); 407 enable_NMI_through_LVT0();
408 enable_8259A_irq(0); 408 enable_8259A_irq(0);
409 } 409 }
410 /* 410 /*
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index cb73c4da87fc..4c03ddccd681 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -337,7 +337,7 @@ void __cpuinit start_secondary(void)
337 337
338 if (nmi_watchdog == NMI_IO_APIC) { 338 if (nmi_watchdog == NMI_IO_APIC) {
339 disable_8259A_irq(0); 339 disable_8259A_irq(0);
340 enable_NMI_through_LVT0(NULL); 340 enable_NMI_through_LVT0();
341 enable_8259A_irq(0); 341 enable_8259A_irq(0);
342 } 342 }
343 343