x86, smp: remove ->restore_NMI_vector()
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 15:43:47 +0000 (16:43 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:34 +0000 (23:20 +0100)
Nothing actually restores the NMI vector - so remove this
logic altogether.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/genapic.h
arch/x86/include/asm/numaq/wakecpu.h
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/mach-generic/bigsmp.c
arch/x86/mach-generic/default.c
arch/x86/mach-generic/es7000.c
arch/x86/mach-generic/numaq.c
arch/x86/mach-generic/summit.c

index 90e83a769a1c7b32ba1c25526d139fb11574233b..e5f9c5696fb6919414473b3ff597e439b771e631 100644 (file)
@@ -82,7 +82,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 (*restore_NMI_vector)(unsigned short *high, unsigned short *low);
        void (*inquire_remote_apic)(int apicid);
 };
 
index 123201712a96607243b497e89a6dda826cd71aaf..920dcfefa83a478109981be56b26e719cd75ce49 100644 (file)
@@ -25,16 +25,6 @@ numaq_store_NMI_vector(unsigned short *high, unsigned short *low)
          *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW));
 }
 
-static inline void
-numaq_restore_NMI_vector(unsigned short *high, unsigned short *low)
-{
-       printk("Restoring NMI vector\n");
-       *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_HIGH)) =
-                                                                *high;
-       *((volatile unsigned short *)phys_to_virt(NUMAQ_TRAMPOLINE_PHYS_LOW)) =
-                                                                *low;
-}
-
 static inline void inquire_remote_apic(int apicid)
 {
 }
index 3a28d6a8c49718412973571434bde256a0acd4be..e9237f5992826b4818c40f31ec91441a6c2eb353 100644 (file)
@@ -229,7 +229,6 @@ struct genapic apic_flat =  {
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = NULL,
 };
 
@@ -375,6 +374,5 @@ struct genapic apic_physflat =  {
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = NULL,
 };
index abc5ee329f21816e7e7a3eaa68733f8c9f80762e..7c87156b641189e43ba79c435c180297fd3a4b36 100644 (file)
@@ -233,6 +233,5 @@ struct genapic apic_x2apic_cluster = {
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = NULL,
 };
index dc815ef22d8c0f6de8fe84f0e8bef803742044a1..5cbae8aa0408886a874bfa5e7263e720abb7b1e2 100644 (file)
@@ -219,6 +219,5 @@ struct genapic apic_x2apic_phys = {
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = NULL,
 };
index b5908735ca50fad09a0d9168a40c6e1f66a64446..6adb5e6f4d92ccb4472927b0ec571888f9590be2 100644 (file)
@@ -292,7 +292,6 @@ struct genapic apic_x2apic_uv_x = {
        .wait_for_init_deassert         = NULL,
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = NULL,
 };
 
index ecdb230d0f2e36c97978c37f10454c51b7dbc9bb..d9377af88cb3090f3c3715a92b45b4b1ffc7a7a1 100644 (file)
@@ -111,6 +111,5 @@ struct genapic apic_bigsmp = {
 
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = inquire_remote_apic,
 };
index 950925615a9e9a8798bf5a623719672d89d4b93a..b004257035c756945e197934258ef83907abadc2 100644 (file)
@@ -92,6 +92,5 @@ struct genapic apic_default = {
 
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = inquire_remote_apic,
 };
index 131907091380177bf8fbf0f2b55d057b31f559d1..62673a8002ff7c26b5741c95ee36dc79e74b4837 100644 (file)
@@ -148,6 +148,5 @@ 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,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = inquire_remote_apic,
 };
index d7f7fcf21c39c4d5f906d30c1d7a486656e0eb9a..2c3341564d145b83152daa66b165d007b93f7691 100644 (file)
@@ -112,6 +112,5 @@ struct genapic apic_numaq = {
 
        .smp_callin_clear_local_apic    = numaq_smp_callin_clear_local_apic,
        .store_NMI_vector               = numaq_store_NMI_vector,
-       .restore_NMI_vector             = numaq_restore_NMI_vector,
        .inquire_remote_apic            = inquire_remote_apic,
 };
index 46fca79f83102d2182af22eb45223f2143fe479c..c2471a9fa8f3548d84b0b68f6d5f8bd1ae15fab4 100644 (file)
@@ -91,6 +91,5 @@ struct genapic apic_summit = {
 
        .smp_callin_clear_local_apic    = NULL,
        .store_NMI_vector               = NULL,
-       .restore_NMI_vector             = NULL,
        .inquire_remote_apic            = inquire_remote_apic,
 };