Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297385
b: refs/heads/master
c: 57779dc
h: refs/heads/master
i:
  297383: 371d05d
v: v3
  • Loading branch information
Alok Kataria authored and John Stultz committed Mar 16, 2012
1 parent 3d22cf3 commit 3b43d87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4a649903f91232d02284d53724b0a45728111767
refs/heads/master: 57779dc2b3b75bee05ef5d1ada47f615f7a13932
10 changes: 10 additions & 0 deletions trunk/arch/x86/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,16 @@ static int __init init_tsc_clocksource(void)
clocksource_tsc.rating = 0;
clocksource_tsc.flags &= ~CLOCK_SOURCE_IS_CONTINUOUS;
}

/*
* Trust the results of the earlier calibration on systems
* exporting a reliable TSC.
*/
if (boot_cpu_has(X86_FEATURE_TSC_RELIABLE)) {
clocksource_register_khz(&clocksource_tsc, tsc_khz);
return 0;
}

schedule_delayed_work(&tsc_irqwork, 0);
return 0;
}
Expand Down

0 comments on commit 3b43d87

Please sign in to comment.