History

y2038: remove obsolete jiffies conversion functions

Now that the last user of timespec_to_jiffies() is gone, these can just be removed, everything else is using ktime_t or timespec64 already.

Arnd Bergmann committed 7 years ago

Commit 751adda1 parent 6e31ded2 files · +5 −73Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/jiffies.h+0−20
@@ -422,26 +422,6 @@ static __always_inline unsigned long usecs_to_jiffies(const unsigned int u) · 421 unmodified lines
422422 extern unsigned long timespec64_to_jiffies(const struct timespec64 *value);
423423 extern void jiffies_to_timespec64(const unsigned long jiffies,
424424 struct timespec64 *value);
425−static inline unsigned long timespec_to_jiffies(const struct timespec *value)
426−{
427− struct timespec64 ts = timespec_to_timespec64(*value);
428−
429− return timespec64_to_jiffies(&ts);
430−}
431−
432−static inline void jiffies_to_timespec(const unsigned long jiffies,
433− struct timespec *value)
434−{
435− struct timespec64 ts;
436−
437− jiffies_to_timespec64(jiffies, &ts);
438− *value = timespec64_to_timespec(ts);
439−}
440−
441−extern unsigned long timeval_to_jiffies(const struct timeval *value);
442−extern void jiffies_to_timeval(const unsigned long jiffies,
443− struct timeval *value);
444−
445425 extern clock_t jiffies_to_clock_t(unsigned long x);
446426 static inline clock_t jiffies_delta_to_clock_t(long delta)
447427 {