Skip to content

Commit

Permalink
[PATCH] x86_64: Disable tsc when apicpmtimer is active
Browse files Browse the repository at this point in the history
Otherwise it has no effect anyways.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Feb 17, 2006
1 parent ab68805 commit 7fd6784
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions arch/x86_64/kernel/apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions include/asm-x86_64/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7fd6784

Please sign in to comment.