diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-22 18:34:39 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-22 18:08:11 -0500 |
commit | 8e6dafd6c741cd4679b4de3c5d9698851e4fa59c (patch) | |
tree | 43ceda76cfd6de5577bd7df3ef35909051ce6c6c /arch/x86/kernel/traps.c | |
parent | d85a881d780cc7aaebe1b7aefcddbcb939acbe2d (diff) |
x86: refactor x86_quirks support
Impact: cleanup
Make x86_quirks support more transparent. The highlevel
methods are now named:
extern void x86_quirk_pre_intr_init(void);
extern void x86_quirk_intr_init(void);
extern void x86_quirk_trap_init(void);
extern void x86_quirk_pre_time_init(void);
extern void x86_quirk_time_init(void);
This makes it clear that if some platform extension has to
do something here that it is considered ... weird, and is
discouraged.
Also remove arch_hooks.h and move it into setup.h (and other
header files where appropriate).
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/traps.c')
-rw-r--r-- | arch/x86/kernel/traps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c index acb8c0585ab9..c8c0a7e530be 100644 --- a/arch/x86/kernel/traps.c +++ b/arch/x86/kernel/traps.c | |||
@@ -61,7 +61,7 @@ | |||
61 | #include <asm/proto.h> | 61 | #include <asm/proto.h> |
62 | #else | 62 | #else |
63 | #include <asm/processor-flags.h> | 63 | #include <asm/processor-flags.h> |
64 | #include <asm/arch_hooks.h> | 64 | #include <asm/setup.h> |
65 | #include <asm/traps.h> | 65 | #include <asm/traps.h> |
66 | 66 | ||
67 | #include "cpu/mcheck/mce.h" | 67 | #include "cpu/mcheck/mce.h" |
@@ -1026,6 +1026,6 @@ void __init trap_init(void) | |||
1026 | cpu_init(); | 1026 | cpu_init(); |
1027 | 1027 | ||
1028 | #ifdef CONFIG_X86_32 | 1028 | #ifdef CONFIG_X86_32 |
1029 | trap_init_hook(); | 1029 | x86_quirk_trap_init(); |
1030 | #endif | 1030 | #endif |
1031 | } | 1031 | } |