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
422extern unsigned long timespec64_to_jiffies(const struct timespec64 *value);422extern unsigned long timespec64_to_jiffies(const struct timespec64 *value);
423extern void jiffies_to_timespec64(const unsigned long jiffies,423extern void jiffies_to_timespec64(const unsigned long jiffies,
424 struct timespec64 *value);424 struct timespec64 *value);
425static 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
432static 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
441extern unsigned long timeval_to_jiffies(const struct timeval *value);
442extern void jiffies_to_timeval(const unsigned long jiffies,
443 struct timeval *value);
444
445extern clock_t jiffies_to_clock_t(unsigned long x);425extern clock_t jiffies_to_clock_t(unsigned long x);
446static inline clock_t jiffies_delta_to_clock_t(long delta)426static inline clock_t jiffies_delta_to_clock_t(long delta)
447{427{