diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-07-20 01:02:26 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-20 07:25:52 (GMT) |
commit | 63b5d7af2556a7de6bf72c5dd0b85a32fb4c3767 (patch) | |
tree | 83465d3c04f62c241d08cc7663328374e9edea4d /arch/x86/kernel/numaq_32.c | |
parent | 64898a8bad8c94ad7a4bd5cc86b66edfbb081f4a (diff) | |
download | linux-fsl-qoriq-63b5d7af2556a7de6bf72c5dd0b85a32fb4c3767.tar.xz |
x86: add ->pre_time_init to x86_quirks
so NUMAQ can use that to call numaq_pre_time_init()
This allows us to remove a NUMAQ special from arch/x86/kernel/setup.c.
(and paves the way to remove the NUMAQ subarch)
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/numaq_32.c')
-rw-r--r-- | arch/x86/kernel/numaq_32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/numaq_32.c b/arch/x86/kernel/numaq_32.c index 7f4e00d..b8c4561 100644 --- a/arch/x86/kernel/numaq_32.c +++ b/arch/x86/kernel/numaq_32.c @@ -84,6 +84,12 @@ void __init numaq_tsc_disable(void) } } +static int __init numaq_pre_time_init(void) +{ + numaq_tsc_disable(); + return 0; +} + int found_numaq; /* * Have to match translation table entries to main table entries by counter @@ -224,6 +230,7 @@ static void __init smp_read_mpc_oem(struct mp_config_oemtable *oemtable, } static struct x86_quirks numaq_x86_quirks __initdata = { + .arch_pre_time_init = numaq_pre_time_init, .arch_time_init = NULL, .arch_pre_intr_init = NULL, .arch_memory_setup = NULL, |