x86, apic: remove ->store_NMI_vector()
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 15:22:09 +0000 (16:22 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 16:53:56 +0000 (17:53 +0100)
Impact: cleanup

It's not used by anything anymore.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apic.h
arch/x86/kernel/bigsmp_32.c
arch/x86/kernel/es7000_32.c
arch/x86/kernel/genapic_flat_64.c
arch/x86/kernel/genx2apic_cluster.c
arch/x86/kernel/genx2apic_phys.c
arch/x86/kernel/genx2apic_uv_x.c
arch/x86/kernel/numaq_32.c
arch/x86/kernel/probe_32.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/summit_32.c

index 2cdd19e4536f8e2dc25f85cabef0cff51ca5261a..122d8eda275ffa9e8046387cb697a1ec75b420e4 100644 (file)
@@ -313,7 +313,6 @@ struct genapic {
 
        void (*wait_for_init_deassert)(atomic_t *deassert);
        void (*smp_callin_clear_local_apic)(void);
-       void (*store_NMI_vector)(unsigned short *high, unsigned short *low);
        void (*inquire_remote_apic)(int apicid);
 
        /* apic ops */
index 0de9eed7c600a4d0b4e58a4917478bc8cbc06374..17c25bc26a591b771a33e7356d6157ad0957cb41 100644 (file)
@@ -263,7 +263,6 @@ struct genapic apic_bigsmp = {
        .wait_for_init_deassert         = default_wait_for_init_deassert,
 
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = default_inquire_remote_apic,
 
        .read                           = native_apic_mem_read,
index 3519f8cab7089c843dd4af5530e0ce0fd6fec6e6..1d6e99a8edc4f4105262942dff636d1796b09ce1 100644 (file)
@@ -746,7 +746,6 @@ struct genapic apic_es7000 = {
 
        /* Nothing to do for most platforms, since cleared by the INIT cycle: */
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = default_inquire_remote_apic,
 
        .read                           = native_apic_mem_read,
index a7d847636487eedea84fc4cd97688cb10d78bf0c..27b81208009a0252305af08c811ba97def5b2e9e 100644 (file)
@@ -227,7 +227,6 @@ struct genapic apic_flat =  {
        .trampoline_phys_high           = DEFAULT_TRAMPOLINE_PHYS_HIGH,
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_mem_read,
@@ -379,7 +378,6 @@ struct genapic apic_physflat =  {
        .trampoline_phys_high           = DEFAULT_TRAMPOLINE_PHYS_HIGH,
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_mem_read,
index f5e02cffa2643a1f13e017325f0c4319b70f32fd..b9ef0091c4d729fe0866b1f128a41dba582a0cc5 100644 (file)
@@ -232,7 +232,6 @@ struct genapic apic_x2apic_cluster = {
        .trampoline_phys_high           = DEFAULT_TRAMPOLINE_PHYS_HIGH,
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_msr_read,
index 11eb4cb7ca3f50c5fc49e2e93dd27c656c213df9..bb752015776d5b1cb62310669b5a82d2222281d4 100644 (file)
@@ -218,7 +218,6 @@ struct genapic apic_x2apic_phys = {
        .trampoline_phys_high           = DEFAULT_TRAMPOLINE_PHYS_HIGH,
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_msr_read,
index c1746a198bde525de0ec80008dfba5a7ee360811..dcb8c14287d8e00c3007920240d9172b32cf651a 100644 (file)
@@ -290,7 +290,6 @@ struct genapic apic_x2apic_uv_x = {
        .trampoline_phys_high           = DEFAULT_TRAMPOLINE_PHYS_HIGH,
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_msr_read,
index 62f9274a2edb9c556682b16409b028d5d48986fa..a709de87819d9a8132dd1d7ecd4a8688061a40a1 100644 (file)
@@ -342,16 +342,6 @@ static inline void numaq_smp_callin_clear_local_apic(void)
        clear_local_APIC();
 }
 
-static inline void
-numaq_store_NMI_vector(unsigned short *high, unsigned short *low)
-{
-       printk(KERN_ERR "Storing NMI vector\n");
-       *high =
-         *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_HIGH));
-       *low =
-         *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW));
-}
-
 static inline const cpumask_t *numaq_target_cpus(void)
 {
        return &CPU_MASK_ALL;
@@ -564,7 +554,6 @@ struct genapic apic_numaq = {
        .wait_for_init_deassert         = NULL,
 
        .smp_callin_clear_local_apic    = numaq_smp_callin_clear_local_apic,
-       .store_NMI_vector               = numaq_store_NMI_vector,
        .inquire_remote_apic            = NULL,
 
        .read                           = native_apic_mem_read,
index fd1352ac909ccf7e9735c1d6659754188857b043..5914ffb6e408d800beabf5d527f0347435a49c01 100644 (file)
@@ -131,7 +131,6 @@ struct genapic apic_default = {
        .wait_for_init_deassert         = default_wait_for_init_deassert,
 
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = default_inquire_remote_apic,
 
        .read                           = native_apic_mem_read,
index 09e73876a44fbff25d1cb80941530155e8c4f3ef..9ce666387f37c7a12b00eca4a0ccb3c7617d7f8a 100644 (file)
@@ -745,21 +745,21 @@ static void __cpuinit do_fork_idle(struct work_struct *work)
        complete(&c_idle->done);
 }
 
-static int __cpuinit do_boot_cpu(int apicid, int cpu)
 /*
  * NOTE - on most systems this is a PHYSICAL apic ID, but on multiquad
  * (ie clustered apic addressing mode), this is a LOGICAL apic ID.
  * Returns zero if CPU booted OK, else error code from ->wakeup_cpu.
  */
+static int __cpuinit do_boot_cpu(int apicid, int cpu)
 {
        unsigned long boot_error = 0;
-       int timeout;
        unsigned long start_ip;
-       unsigned short nmi_high = 0, nmi_low = 0;
+       int timeout;
        struct create_idle c_idle = {
-               .cpu = cpu,
-               .done = COMPLETION_INITIALIZER_ONSTACK(c_idle.done),
+               .cpu    = cpu,
+               .done   = COMPLETION_INITIALIZER_ONSTACK(c_idle.done),
        };
+
        INIT_WORK(&c_idle.work, do_fork_idle);
 
        alternatives_smp_switch(1);
@@ -824,9 +824,6 @@ do_rest:
 
                pr_debug("Setting warm reset code and vector.\n");
 
-               if (apic->store_NMI_vector)
-                       apic->store_NMI_vector(&nmi_high, &nmi_low);
-
                smpboot_setup_warm_reset_vector(start_ip);
                /*
                 * Be paranoid about clearing APIC errors.
index c4690349a54a4685c82e7c6c7bd291c1dafba661..8f1a11b072a7b1cd04fc80f3f90b12ca25bdad68 100644 (file)
@@ -590,7 +590,6 @@ struct genapic apic_summit = {
        .wait_for_init_deassert         = default_wait_for_init_deassert,
 
        .smp_callin_clear_local_apic    = NULL,
-       .store_NMI_vector               = NULL,
        .inquire_remote_apic            = default_inquire_remote_apic,
 
        .read                           = native_apic_mem_read,