summaryrefslogtreecommitdiffstats
path: root/sys/dev/gpio/gpiodcf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)cheloha2020-06-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | time_second(9) and time_uptime(9) are widely used in the kernel to quickly get the system UTC or system uptime as a time_t. However, time_t is 64-bit everywhere, so it is not generally safe to use them on 32-bit platforms: you have a split-read problem if your hardware cannot perform atomic 64-bit reads. This patch replaces time_second(9) with gettime(9), a safer successor interface, throughout the kernel. Similarly, time_uptime(9) is replaced with getuptime(9). There is a performance cost on 32-bit platforms in exchange for eliminating the split-read problem: instead of two register reads you now have a lockless read loop to pull the values from the timehands. This is really not *too* bad in the grand scheme of things, but compared to what we were doing before it is several times slower. There is no performance cost on 64-bit (__LP64__) platforms. With input from visa@, dlg@, and tedu@. Several bugs squashed by visa@. ok kettenis@
* gpiodcf(4): unbreak compilationcheloha2020-04-151-2/+2
|
* gpiodcf(4): tvtohz(9)+timeout_add(9) -> timeout_add_msec(9)cheloha2019-08-101-54/+21
| | | | "looks fine" kettenis@, ok deraadt@
* Delete unnecessary <sys/file.h> includesguenther2017-12-301-2/+1
| | | | ok millert@ krw@
* The Swiss Federal Government decided to shut down HBG at the end of 2011.claudio2015-06-071-62/+3
| | | | | | | On 6 September 2012 at 12:02:00 UTC both antenna towers were demolished by controlled explosives. So this is not coming back and we can tedu the support for HBG form the DCF77 drivers. Remided by mbalmer
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-3/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-131-3/+3
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* in ca_attach() there is no need to set .value and .flags of sensors to 0,cnst2009-04-261-5/+1
| | | | since autoconf(9) allocates softc with M_ZERO; ok deraadt
* Welcome gpiodcf(4), a driver that attaches to a GPIO pin, decodes thembalmer2008-11-281-0/+612
signal from an attached DCF77, HG, or TDF receiver and provides a timedelta.