diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-22 18:29:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-22 18:06:49 -0500 |
commit | d85a881d780cc7aaebe1b7aefcddbcb939acbe2d (patch) | |
tree | eec339d9d76617a0898acfd2af25b4beeaba0dd4 /arch/x86 | |
parent | 965c7ecaf2e2b083d711a01ab33735a4bdeee1a4 (diff) |
x86: remove various unused subarch hooks
Impact: remove dead code
Remove:
- pre_setup_arch_hook()
- mca_nmi_hook()
If needed they can be added back via an x86_quirk handler.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/arch_hooks.h | 6 | ||||
-rw-r--r-- | arch/x86/kernel/mca_32.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/setup.c | 34 |
3 files changed, 4 insertions, 40 deletions
diff --git a/arch/x86/include/asm/arch_hooks.h b/arch/x86/include/asm/arch_hooks.h index cbd4957838a6..54248172be14 100644 --- a/arch/x86/include/asm/arch_hooks.h +++ b/arch/x86/include/asm/arch_hooks.h | |||
@@ -15,12 +15,12 @@ extern void init_ISA_irqs(void); | |||
15 | extern irqreturn_t timer_interrupt(int irq, void *dev_id); | 15 | extern irqreturn_t timer_interrupt(int irq, void *dev_id); |
16 | 16 | ||
17 | /* these are the defined hooks */ | 17 | /* these are the defined hooks */ |
18 | extern void intr_init_hook(void); | ||
19 | extern void pre_intr_init_hook(void); | 18 | extern void pre_intr_init_hook(void); |
20 | extern void pre_setup_arch_hook(void); | 19 | extern void intr_init_hook(void); |
20 | |||
21 | extern void trap_init_hook(void); | 21 | extern void trap_init_hook(void); |
22 | |||
22 | extern void pre_time_init_hook(void); | 23 | extern void pre_time_init_hook(void); |
23 | extern void time_init_hook(void); | 24 | extern void time_init_hook(void); |
24 | extern void mca_nmi_hook(void); | ||
25 | 25 | ||
26 | #endif /* _ASM_X86_ARCH_HOOKS_H */ | 26 | #endif /* _ASM_X86_ARCH_HOOKS_H */ |
diff --git a/arch/x86/kernel/mca_32.c b/arch/x86/kernel/mca_32.c index 2dc183758be3..f74eef52ab55 100644 --- a/arch/x86/kernel/mca_32.c +++ b/arch/x86/kernel/mca_32.c | |||
@@ -474,6 +474,4 @@ void __kprobes mca_handle_nmi(void) | |||
474 | * adapter was responsible for the error. | 474 | * adapter was responsible for the error. |
475 | */ | 475 | */ |
476 | bus_for_each_dev(&mca_bus_type, NULL, NULL, mca_handle_nmi_callback); | 476 | bus_for_each_dev(&mca_bus_type, NULL, NULL, mca_handle_nmi_callback); |
477 | 477 | } | |
478 | mca_nmi_hook(); | ||
479 | } /* mca_handle_nmi */ | ||
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index d699811b3f7c..d4de1e4c2045 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -668,7 +668,6 @@ void __init setup_arch(char **cmdline_p) | |||
668 | #ifdef CONFIG_X86_32 | 668 | #ifdef CONFIG_X86_32 |
669 | memcpy(&boot_cpu_data, &new_cpu_data, sizeof(new_cpu_data)); | 669 | memcpy(&boot_cpu_data, &new_cpu_data, sizeof(new_cpu_data)); |
670 | visws_early_detect(); | 670 | visws_early_detect(); |
671 | pre_setup_arch_hook(); | ||
672 | #else | 671 | #else |
673 | printk(KERN_INFO "Command line: %s\n", boot_command_line); | 672 | printk(KERN_INFO "Command line: %s\n", boot_command_line); |
674 | #endif | 673 | #endif |
@@ -1023,18 +1022,6 @@ void __init intr_init_hook(void) | |||
1023 | } | 1022 | } |
1024 | 1023 | ||
1025 | /** | 1024 | /** |
1026 | * pre_setup_arch_hook - hook called prior to any setup_arch() execution | ||
1027 | * | ||
1028 | * Description: | ||
1029 | * generally used to activate any machine specific identification | ||
1030 | * routines that may be needed before setup_arch() runs. On Voyager | ||
1031 | * this is used to get the board revision and type. | ||
1032 | **/ | ||
1033 | void __init pre_setup_arch_hook(void) | ||
1034 | { | ||
1035 | } | ||
1036 | |||
1037 | /** | ||
1038 | * trap_init_hook - initialise system specific traps | 1025 | * trap_init_hook - initialise system specific traps |
1039 | * | 1026 | * |
1040 | * Description: | 1027 | * Description: |
@@ -1088,25 +1075,4 @@ void __init time_init_hook(void) | |||
1088 | irq0.mask = cpumask_of_cpu(0); | 1075 | irq0.mask = cpumask_of_cpu(0); |
1089 | setup_irq(0, &irq0); | 1076 | setup_irq(0, &irq0); |
1090 | } | 1077 | } |
1091 | |||
1092 | #ifdef CONFIG_MCA | ||
1093 | /** | ||
1094 | * mca_nmi_hook - hook into MCA specific NMI chain | ||
1095 | * | ||
1096 | * Description: | ||
1097 | * The MCA (Microchannel Architecture) has an NMI chain for NMI sources | ||
1098 | * along the MCA bus. Use this to hook into that chain if you will need | ||
1099 | * it. | ||
1100 | **/ | ||
1101 | void mca_nmi_hook(void) | ||
1102 | { | ||
1103 | /* | ||
1104 | * If I recall correctly, there's a whole bunch of other things that | ||
1105 | * we can do to check for NMI problems, but that's all I know about | ||
1106 | * at the moment. | ||
1107 | */ | ||
1108 | pr_warning("NMI generated from unknown source!\n"); | ||
1109 | } | ||
1110 | #endif /* CONFIG_MCA */ | ||
1111 | |||
1112 | #endif /* CONFIG_X86_32 */ | 1078 | #endif /* CONFIG_X86_32 */ |