FreeBSD Bugzilla – Attachment 14759 Details for
Bug 27627
machdep.tsc_freq does not exists on machines with APM or SMP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 892 bytes, created by
larse
on 2001-05-25 00:30:07 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
larse
Created:
2001-05-25 00:30:07 UTC
Size:
892 bytes
patch
obsolete
>--- /usr/src/sys/i386/isa/clock.c Wed Aug 2 17:09:29 2000 >+++ clock.c Thu May 24 15:57:07 2001 >@@ -140,6 +140,9 @@ > u_int timer_freq = TIMER_FREQ; > int timer0_max_count; > u_int tsc_freq; >+#ifdef CPUHZ >+static u_int cpuhz = 0; >+#endif > int tsc_is_broken; > int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */ > >@@ -661,6 +664,9 @@ > * similar to those for the i8254 clock. > */ > if (tsc_present) >+#ifdef CPUHZ >+ cpuhz = >+#endif > tsc_freq = rdtsc() - old_tsc; > > if (bootverbose) { >@@ -1164,6 +1170,10 @@ > > SYSCTL_PROC(_machdep, OID_AUTO, i8254_freq, CTLTYPE_INT | CTLFLAG_RW, > 0, sizeof(u_int), sysctl_machdep_i8254_freq, "I", ""); >+ >+#ifdef CPUHZ >+SYSCTL_INT(_hw, OID_AUTO, cpuhz, CTLFLAG_RD, &cpuhz, 0, "CPU speed in Hz."); >+#endif > > static int > sysctl_machdep_tsc_freq(SYSCTL_HANDLER_ARGS)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27627
: 14759 |
14760