#
0f9891f1 |
| 24-May-2024 |
jsg <jsg@openbsd.org> |
remove unneeded includes; ok miod@
|
#
24ee467d |
| 04-Feb-2023 |
cheloha <cheloha@openbsd.org> |
timecounting: remove incomplete PPS support
The timecounting code has had stubs for pulse-per-second (PPS) polling since it was imported in 2004. At this point it seems unlikely that anyone is goin
timecounting: remove incomplete PPS support
The timecounting code has had stubs for pulse-per-second (PPS) polling since it was imported in 2004. At this point it seems unlikely that anyone is going to finish adding PPS support, so let's remove the stubs:
- Delete the dead tc_poll_pps() call from tc_windup(). - Remove all tc_poll_pps symbols from the kernel.
Link: https://marc.info/?l=openbsd-tech&m=167519035723210&w=2
ok miod@
show more ...
|
#
8d2c75e4 |
| 11-Mar-2022 |
mpi <mpi@openbsd.org> |
Constify struct cfattach.
|
#
8611d3cd |
| 23-Feb-2021 |
cheloha <cheloha@openbsd.org> |
timecounting: use C99-style initialization for all timecounter structs
The timecounter struct is large and I think it may change in the future. Changing it later will be easier if we use C99-style
timecounting: use C99-style initialization for all timecounter structs
The timecounter struct is large and I think it may change in the future. Changing it later will be easier if we use C99-style initialization for all timecounter structs. It also makes reading the code a bit easier.
For reasons I cannot explain, switching to C99-style initialization sometimes changes the hash of the resulting object file, even though the resulting struct should be the same. So there is a binary change here, but only sometimes. No behavior should change in either case.
I can't compile-test this everywhere but I have been staring at the diff for days now and I'm relatively confident this will not break compilation. Fingers crossed.
ok gnezdo@
show more ...
|
#
d82e6535 |
| 06-Jul-2020 |
pirofti <pirofti@openbsd.org> |
Add support for timeconting in userland.
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they
Add support for timeconting in userland.
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time.
If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture.
The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel.
Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file.
This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now).
Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others!
OK from at least kettenis@, cheloha@, naddy@, sthen@
show more ...
|
#
c8f27247 |
| 29-May-2020 |
deraadt <deraadt@openbsd.org> |
dev/rndvar.h no longer has statistical interfaces (removed during various conversion steps). it only contains kernel prototypes for 4 interfaces, all of which legitimately belong in sys/systm.h, whi
dev/rndvar.h no longer has statistical interfaces (removed during various conversion steps). it only contains kernel prototypes for 4 interfaces, all of which legitimately belong in sys/systm.h, which are already included by all enqueue_randomness() users.
show more ...
|
#
8544fed6 |
| 09-Jan-2020 |
mpi <mpi@openbsd.org> |
Convert sleeps of 1sec or more to tsleep_nsec(9).
ok bluhm@
|
#
9e9abf5b |
| 28-Apr-2018 |
jasper <jasper@openbsd.org> |
replace add_*_randomness with enqueue_randomness()
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the
replace add_*_randomness with enqueue_randomness()
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it.
ok mikeb@ deraadt@
show more ...
|
#
37ecb596 |
| 06-Dec-2013 |
deraadt <deraadt@openbsd.org> |
Add a DVACT_WAKEUP op to the *_activate() API. This is called after the kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op
Add a DVACT_WAKEUP op to the *_activate() API. This is called after the kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
show more ...
|
#
2b2fa8a9 |
| 01-Oct-2013 |
sf <sf@openbsd.org> |
Use %z* for size_t
while there, fix a few %d into %u
|
#
35278548 |
| 03-Jul-2013 |
sf <sf@openbsd.org> |
fix: cast void * to char *, fix format args for (u)int64_t, tc_frequency is unsigned
ok kettenis@
|
#
c06fda6d |
| 30-May-2013 |
deraadt <deraadt@openbsd.org> |
Enforce ca_activate tree-walks over the entire heirarchy for all events, cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request
Enforce ca_activate tree-walks over the entire heirarchy for all events, cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
show more ...
|
#
c0d07f7c |
| 05-Oct-2012 |
haesbaert <haesbaert@openbsd.org> |
Avoid uninitiliazed use of ctl and corresponding warnings. Part of the work to remove -Wno-uninitialized.
ok kettenis@
|
#
97c0407e |
| 16-Aug-2012 |
tedu <tedu@openbsd.org> |
we are past the point where timecounters may disappear ok miod
|
#
cda39e48 |
| 09-Apr-2011 |
deraadt <deraadt@openbsd.org> |
use unique wait channels
|
#
56088cbd |
| 08-Aug-2010 |
deraadt <deraadt@openbsd.org> |
at resume time, re-nable the AMDPM_RNGEN bit
|
#
f7ab66d3 |
| 08-Apr-2010 |
tedu <tedu@openbsd.org> |
these files don't need to include proc.h anymore. ok oga for agp
|
#
d874cce4 |
| 26-Jun-2008 |
ray <ray@openbsd.org> |
First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code t
First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors.
OK deraadt@
show more ...
|
#
95480b86 |
| 06-May-2008 |
markus <markus@openbsd.org> |
AMD_8111_PMC has timecounter, too; ok grange@ some time ago
|
#
73550447 |
| 03-May-2007 |
dlg <dlg@openbsd.org> |
convert lockmgr style locks to rwlocks.
input from art@
|
#
e1162c6e |
| 11-Dec-2006 |
deraadt <deraadt@openbsd.org> |
do not bus_space_map devices which are at address 0; ok kettenis
|
#
cc979f14 |
| 28-Nov-2006 |
kettenis <kettenis@openbsd.org> |
acpi may steal power management functionality, in which case we cannot io map the device. Bail out without warning. If we want to retain the rgn we could re-enable io and be very very careful.
ok
acpi may steal power management functionality, in which case we cannot io map the device. Bail out without warning. If we want to retain the rgn we could re-enable io and be very very careful.
ok deraadt@
show more ...
|
#
6f23e57a |
| 28-Sep-2006 |
grange <grange@openbsd.org> |
Provide more info in error messages so we can see what's going on. And some cosmetics in debug messages while here.
|
#
f80bdd3b |
| 09-Mar-2006 |
dlg <dlg@openbsd.org> |
unbreak the tree. i dunno how this compiled on my box at home.
found by marco@
|
#
21264c74 |
| 08-Mar-2006 |
dlg <dlg@openbsd.org> |
amdpmreg.h is only used by amdpm.c, so merge the header into the c file. this unclutters the tree a bit.
ok deraadt@
|