summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-12-10 05:05:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-12-10 05:05:40 +0000
commitf757c49af282ed9d9acf394d841aa6adc1b98112 (patch)
tree5633368ccec711c8b1c5f0b5339f415441c7461c
parenta612cc20e69b929147cf44413c6f4df4fee80a9b (diff)
remove timespec_to_jiffies() which no longer exists in linux
-rw-r--r--sys/dev/pci/drm/include/linux/jiffies.h12
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