diff options
author | 2020-12-10 05:05:39 +0000 | |
---|---|---|
committer | 2020-12-10 05:05:39 +0000 | |
commit | 26c9210114aede08b8efa14e32b87f490a2c697f (patch) | |
tree | 08a2ee7441a16e6d688e716b7f29382e6325bc7a /sys/dev/pci/drm/include/linux | |
parent | Convert ddb_sysctl to sysctl_bounded_arr (diff) | |
download | wireguard-openbsd-26c9210114aede08b8efa14e32b87f490a2c697f.tar.xz wireguard-openbsd-26c9210114aede08b8efa14e32b87f490a2c697f.zip |
remove timespec_to_jiffies() which no longer exists in linux
Diffstat (limited to 'sys/dev/pci/drm/include/linux')
-rw-r--r-- | sys/dev/pci/drm/include/linux/jiffies.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sys/dev/pci/drm/include/linux/jiffies.h b/sys/dev/pci/drm/include/linux/jiffies.h index da7679a521b..bb1de858cdd 100644 --- a/sys/dev/pci/drm/include/linux/jiffies.h +++ b/sys/dev/pci/drm/include/linux/jiffies.h @@ -30,16 +30,4 @@ extern volatile unsigned long jiffies; #define time_after_eq(a,b) ((long)(b) - (long)(a) <= 0) #define time_before(a,b) ((long)(a) - (long)(b) < 0) -static inline unsigned long -timespec_to_jiffies(const struct timespec *ts) -{ - long long to_ticks; - - to_ticks = (long long)hz * ts->tv_sec + ts->tv_nsec / (tick * 1000); - if (to_ticks > INT_MAX) - to_ticks = INT_MAX; - - return ((int)to_ticks); -} - #endif |