diff options
Diffstat (limited to 'sys')
-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 |