diff options
author | 2020-04-26 10:35:05 +0000 | |
---|---|---|
committer | 2020-04-26 10:35:05 +0000 | |
commit | b586a18f7dac683c33b5e3224e0d5f24af824966 (patch) | |
tree | cbbfdc57ac9e90ad37236e6a710ce591d0f573a5 /sys/dev/fdt/imxgpc.c | |
parent | sync (diff) | |
download | wireguard-openbsd-b586a18f7dac683c33b5e3224e0d5f24af824966.tar.xz wireguard-openbsd-b586a18f7dac683c33b5e3224e0d5f24af824966.zip |
Sanitize inittodr()/resettodr() implementation.
- move implementations next to eachother in the same file
- remove pointless call to resettodr() in inittodr()
- use OpenBSD define to get a minimum plausible time
- if RTC time is before minimum plausible time, reject it
- don't print "clock gained N days" on ramdisk
Hopefully this implementation can serve as a model for unification
into an MI implementation.
ok mpi@
Diffstat (limited to 'sys/dev/fdt/imxgpc.c')
0 files changed, 0 insertions, 0 deletions