Implement time_after() and firends as static inline functions.
authorclaudio <claudio@openbsd.org>
Tue, 1 Aug 2023 06:40:18 +0000 (06:40 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 1 Aug 2023 06:40:18 +0000 (06:40 +0000)
commit746f1522d75c5289ed72f4ac7161fce0f0c5ed3d
treeb4ce6ac2f239b83b7b3b8bd82b617267da085827
parent4539d4267463fba5637c7c8a01f2dd4fe6cc901a
Implement time_after() and firends as static inline functions.
The previous macros were too optimistic about types and also did a signed
subtraction that could overflow.
OK miod@ kettenis@ deraadt@ jsg@
sys/dev/pci/drm/include/linux/jiffies.h