]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] x86_64: Disable tsc when apicpmtimer is active
authorAndi Kleen <ak@suse.de>
Thu, 16 Feb 2006 22:42:07 +0000 (23:42 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 17 Feb 2006 16:00:40 +0000 (08:00 -0800)
Otherwise it has no effect anyways.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/apic.c
arch/x86_64/kernel/time.c
include/asm-x86_64/proto.h

index 7a0a3e8d5d7265ed23e1f0cf0ae1f108b64645e8..e5b14c57eaa0644fa8e4106a445b58e3d1f51e1d 100644 (file)
@@ -1152,6 +1152,7 @@ __setup("noapicmaintimer", setup_noapicmaintimer);
 static __init int setup_apicpmtimer(char *s)
 {
        apic_calibrate_pmtmr = 1;
+       notsc_setup(NULL);
        return setup_apicmaintimer(NULL);
 }
 __setup("apicpmtimer", setup_apicpmtimer);
index 3c58c30506a104c00d505b234b6261947fc4c8a3..67841d11ed1ff978aada750c1445b93001e20d1e 100644 (file)
@@ -1327,8 +1327,7 @@ static int __init nohpet_setup(char *s)
 
 __setup("nohpet", nohpet_setup);
 
-
-static int __init notsc_setup(char *s)
+int __init notsc_setup(char *s)
 {
        notsc = 1;
        return 0;
index c99832e7bf3f76a0b531e8d9ae913fc17fcb3f40..eca3f2d633dbb67368e57cdd0e550218f1ea4516 100644 (file)
@@ -133,6 +133,7 @@ extern int fix_aperture;
 extern int force_iommu;
 
 extern int reboot_force;
+extern int notsc_setup(char *);
 
 extern void smp_local_timer_interrupt(struct pt_regs * regs);