#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
170289 |
|
04-Jun-2007 |
dwmalone |
Despite several examples in the kernel, the third argument of sysctl_handle_int is not sizeof the int type you want to export. The type must always be an int or an unsigned int.
Remove the instances where a sizeof(variable) is passed to stop people accidently cut and pasting these examples.
In a few places this was sysctl_handle_int was being used on 64 bit types, which would truncate the value to be exported. In these cases use sysctl_handle_quad to export them and change the format to Q so that sysctl(1) can still print them.
|
#
129882 |
|
30-May-2004 |
phk |
Add missing #include <sys/module.h>
|
#
121480 |
|
24-Oct-2003 |
jhb |
- Fail to probe if acpi0 probed ok as this driver basically tries to probe the ACPI timer and we shouldn't do that if ACPI is already around to do that for us. - Set a description and tweak the order of checks in the probe function to more closely match other PCI drivers.
This should probably be moved to sys/dev/piix/piix.c at some point and turned on for all i386 kernels rather than just SMP ones.
|
#
119948 |
|
10-Sep-2003 |
jhb |
Whitespace.
|
#
119937 |
|
09-Sep-2003 |
jhb |
Add comments to the members of the timecounter struct similar to other timecounters.
|
#
119452 |
|
25-Aug-2003 |
obrien |
Fix copyright comment & FBSDID style nits.
Requested by: bde
|
#
118950 |
|
15-Aug-2003 |
jhb |
- Update location of PCI headers. - Use macros for PCI config registers instead of magic numbers. - Small whitespace nits.
|
#
115683 |
|
02-Jun-2003 |
obrien |
Use __FBSDID().
|
#
113173 |
|
06-Apr-2003 |
des |
Initialize the PIIX timecounter in piix_attach(), which is called only once, instead of doing it in piix_probe(), which is called every time the PCI bus is rescanned.
|
#
106865 |
|
13-Nov-2002 |
mux |
Remove a commented out #include "opt_pci.h", it doesn't exist anymore.
|
#
95814 |
|
30-Apr-2002 |
phk |
Don't export timecounter structures under debug. with sysctl, they contain no truly interesting data anymore.
|
#
95489 |
|
26-Apr-2002 |
phk |
Remove the tc_update() function. Any frequency change to the timecounter will be used starting at the next second, which is good enough for sysctl purposes. If better adjustment is needed the NTP PLL should be used.
|
#
66277 |
|
22-Sep-2000 |
ps |
Remove the NCPU, NAPIC, NBUS, NINTR config options. Make NAPIC, NBUS, NINTR dynamic and set NCPU to a maximum of 16 under SMP.
Reviewed by: peter
|
#
62573 |
|
04-Jul-2000 |
phk |
Previous commit changing SYSCTL_HANDLER_ARGS violated KNF.
Pointed out by: bde
|
#
62454 |
|
03-Jul-2000 |
phk |
Style police catches up with rev 1.26 of src/sys/sys/sysctl.h:
Sanitize SYSCTL_HANDLER_ARGS so that simplistic tools can grog our sources:
-sysctl_vm_zone SYSCTL_HANDLER_ARGS +sysctl_vm_zone (SYSCTL_HANDLER_ARGS)
|
#
58377 |
|
20-Mar-2000 |
phk |
Isolate the Timecounter internals in their own two files.
Make the public interface more systematically named.
Remove the alternate method, it doesn't do any good, only ruins performance.
Add counters to profile the usage of the 8 access functions.
Apply the beer-ware to my code.
The weird +/- counts are caused by two repocopies behind the scenes: kern/kern_clock.c -> kern/kern_tc.c sys/time.h -> sys/timetc.h (thanks peter!)
|
#
53879 |
|
29-Nov-1999 |
phk |
How hard can it be to implement a 24bit counter in hardware ?
Make sure we read a likely value from the PIIX timecounter.
This should fix a large fraction of the "calcru: negative time" warnings produced by SMP machines.
Another hole in one by: bde Didn't belive Bruce: phk
|
#
52121 |
|
11-Oct-1999 |
peter |
Zap unneeded #includes
Submitted by: phk
|
#
51596 |
|
23-Sep-1999 |
jhay |
Make the frequency tuneable via a sysctl.
Reviewed by: phk
|
#
51451 |
|
20-Sep-1999 |
phk |
On PIIX4 based SMP systems use the PMTMR register for timecounting.
It is about 2.5 microseconds or roughly 3 times faster to use this "PIIX" timecounter than the "i8254" timecounter. Resolution is also 3 times better.
The code cheats and don't register the PCI device, because other pieces of code want to use it too.
Originally spotted by: msmith
|