Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109387298
D32510.id96925.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D32510.id96925.diff
View Options
Index: sys/x86/x86/tsc.c
===================================================================
--- sys/x86/x86/tsc.c
+++ sys/x86/x86/tsc.c
@@ -42,7 +42,6 @@
#include <sys/time.h>
#include <sys/timetc.h>
#include <sys/kernel.h>
-#include <sys/power.h>
#include <sys/smp.h>
#include <sys/vdso.h>
#include <machine/clock.h>
@@ -585,23 +584,6 @@
*/
max_freq = UINT_MAX;
- /*
- * We can not use the TSC if we support APM. Precise timekeeping
- * on an APM'ed machine is at best a fools pursuit, since
- * any and all of the time spent in various SMM code can't
- * be reliably accounted for. Reading the RTC is your only
- * source of reliable time info. The i8254 loses too, of course,
- * but we need to have some kind of time...
- * We don't know at this point whether APM is going to be used
- * or not, nor when it might be activated. Play it safe.
- */
- if (power_pm_get_type() == POWER_PM_TYPE_APM) {
- tsc_timecounter.tc_quality = -1000;
- if (bootverbose)
- printf("TSC timecounter disabled: APM enabled.\n");
- goto init;
- }
-
/*
* Intel CPUs without a C-state invariant TSC can stop the TSC
* in either C2 or C3. Disable use of C2 and C3 while using
@@ -637,7 +619,6 @@
tsc_timecounter.tc_quality = 1000;
max_freq >>= tsc_shift;
-init:
for (shift = 0; shift <= 31 && (tsc_freq >> shift) > max_freq; shift++)
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 5, 9:57 AM (4 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16472094
Default Alt Text
D32510.id96925.diff (1 KB)
Attached To
Mode
D32510: x86: Remove some leftover APM support
Attached
Detach File
Event Timeline
Log In to Comment