diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-08-24 05:01:41 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-16 10:53:00 -0400 |
commit | 920fa7a507c3b1004a9ebe07a2c9d38605b3406a (patch) | |
tree | 82fed044bcbe2e3fac48a8816b2949bfd1929d33 /arch/x86/kernel | |
parent | 7c37e48b5125fdb0acac846a0a3af42806175d44 (diff) |
x86: apic - unify setup_apicpmtimer
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic_32.c | 10 | ||||
-rw-r--r-- | 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 21c831d96af3..df6ed603e547 100644 --- a/arch/x86/kernel/apic_32.c +++ b/arch/x86/kernel/apic_32.c | |||
@@ -1774,6 +1774,16 @@ static int __init parse_nolapic_timer(char *arg) | |||
1774 | } | 1774 | } |
1775 | early_param("nolapic_timer", parse_nolapic_timer); | 1775 | early_param("nolapic_timer", parse_nolapic_timer); |
1776 | 1776 | ||
1777 | #ifdef CONFIG_X86_64 | ||
1778 | static __init int setup_apicpmtimer(char *s) | ||
1779 | { | ||
1780 | apic_calibrate_pmtmr = 1; | ||
1781 | notsc_setup(NULL); | ||
1782 | return 0; | ||
1783 | } | ||
1784 | __setup("apicpmtimer", setup_apicpmtimer); | ||
1785 | #endif | ||
1786 | |||
1777 | static int __init apic_set_verbosity(char *arg) | 1787 | static int __init apic_set_verbosity(char *arg) |
1778 | { | 1788 | { |
1779 | if (!arg) { | 1789 | if (!arg) { |
diff --git a/arch/x86/kernel/apic_64.c b/arch/x86/kernel/apic_64.c index bb46711a0b1e..ddc5b245faf2 100644 --- a/arch/x86/kernel/apic_64.c +++ b/arch/x86/kernel/apic_64.c | |||
@@ -1810,6 +1810,7 @@ static int __init parse_nolapic_timer(char *arg) | |||
1810 | } | 1810 | } |
1811 | early_param("nolapic_timer", parse_nolapic_timer); | 1811 | early_param("nolapic_timer", parse_nolapic_timer); |
1812 | 1812 | ||
1813 | #ifdef CONFIG_X86_64 | ||
1813 | static __init int setup_apicpmtimer(char *s) | 1814 | static __init int setup_apicpmtimer(char *s) |
1814 | { | 1815 | { |
1815 | apic_calibrate_pmtmr = 1; | 1816 | apic_calibrate_pmtmr = 1; |
@@ -1817,6 +1818,7 @@ static __init int setup_apicpmtimer(char *s) | |||
1817 | return 0; | 1818 | return 0; |
1818 | } | 1819 | } |
1819 | __setup("apicpmtimer", setup_apicpmtimer); | 1820 | __setup("apicpmtimer", setup_apicpmtimer); |
1821 | #endif | ||
1820 | 1822 | ||
1821 | static int __init apic_set_verbosity(char *arg) | 1823 | static int __init apic_set_verbosity(char *arg) |
1822 | { | 1824 | { |