[PATCH 3/8] x86: apic - unify setup_apicpmtimer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Cyrill Gorcunov
Date: Saturday, August 23, 2008 - 6:01 am

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---
 arch/x86/kernel/apic_32.c |   10 ++++++++++
 arch/x86/kernel/apic_64.c |    2 ++
 2 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/apic_32.c b/arch/x86/kernel/apic_32.c
index b8d80c2..ad295cf 100644
--- a/arch/x86/kernel/apic_32.c
+++ b/arch/x86/kernel/apic_32.c
@@ -1778,6 +1778,16 @@ static int __init parse_nolapic_timer(char *arg)
 }
 early_param("nolapic_timer", parse_nolapic_timer);
 
+#ifdef CONFIG_X86_64
+static __init int setup_apicpmtimer(char *s)
+{
+	apic_calibrate_pmtmr = 1;
+	notsc_setup(NULL);
+	return 0;
+}
+__setup("apicpmtimer", setup_apicpmtimer);
+#endif
+
 static int __init apic_set_verbosity(char *arg)
 {
 	if (!arg)  {
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c
index 6272c60..03641d7 100644
--- a/arch/x86/kernel/apic_64.c
+++ b/arch/x86/kernel/apic_64.c
@@ -1806,6 +1806,7 @@ static int __init parse_nolapic_timer(char *arg)
 }
 early_param("nolapic_timer", parse_nolapic_timer);
 
+#ifdef CONFIG_X86_64
 static __init int setup_apicpmtimer(char *s)
 {
 	apic_calibrate_pmtmr = 1;
@@ -1813,6 +1814,7 @@ static __init int setup_apicpmtimer(char *s)
 	return 0;
 }
 __setup("apicpmtimer", setup_apicpmtimer);
+#endif
 
 static int __init apic_set_verbosity(char *arg)
 {
-- 
1.6.0.6.gc667

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/8] tip/x86/apic - merging snippet, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
[PATCH 3/8] x86: apic - unify setup_apicpmtimer, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
[PATCH 5/8] x86: apic - unify hard_smp_processor_id, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
[PATCH 6/8] x86: apic - unify setup_local_APIC, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
[PATCH 7/8] x86: apic_32.c should use __cpuinit section, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
[PATCH 8/8] x86: apic - unify smp_apic_timer_interrupt, Cyrill Gorcunov, (Sat Aug 23, 6:01 am)
Re: [PATCH 5/8] x86: apic - unify hard_smp_processor_id, Cyrill Gorcunov, (Sat Aug 23, 12:45 pm)
Re: [PATCH 5/8] x86: apic - unify hard_smp_processor_id, Cyrill Gorcunov, (Sat Aug 23, 1:18 pm)