提交 7fd67843 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[PATCH] x86_64: Disable tsc when apicpmtimer is active

Otherwise it has no effect anyways.
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 ab688059
...@@ -1152,6 +1152,7 @@ __setup("noapicmaintimer", setup_noapicmaintimer); ...@@ -1152,6 +1152,7 @@ __setup("noapicmaintimer", setup_noapicmaintimer);
static __init int setup_apicpmtimer(char *s) static __init int setup_apicpmtimer(char *s)
{ {
apic_calibrate_pmtmr = 1; apic_calibrate_pmtmr = 1;
notsc_setup(NULL);
return setup_apicmaintimer(NULL); return setup_apicmaintimer(NULL);
} }
__setup("apicpmtimer", setup_apicpmtimer); __setup("apicpmtimer", setup_apicpmtimer);
......
...@@ -1327,8 +1327,7 @@ static int __init nohpet_setup(char *s) ...@@ -1327,8 +1327,7 @@ static int __init nohpet_setup(char *s)
__setup("nohpet", nohpet_setup); __setup("nohpet", nohpet_setup);
int __init notsc_setup(char *s)
static int __init notsc_setup(char *s)
{ {
notsc = 1; notsc = 1;
return 0; return 0;
......
...@@ -133,6 +133,7 @@ extern int fix_aperture; ...@@ -133,6 +133,7 @@ extern int fix_aperture;
extern int force_iommu; extern int force_iommu;
extern int reboot_force; extern int reboot_force;
extern int notsc_setup(char *);
extern void smp_local_timer_interrupt(struct pt_regs * regs); extern void smp_local_timer_interrupt(struct pt_regs * regs);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册