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.
Showing the changes to include/linux (1 of 2 files). Show all
Unified · Split
| @@ -422,26 +422,6 @@ static __always_inline unsigned long usecs_to_jiffies(const unsigned int u) · 421 unmodified lines | |||
| 422 | extern unsigned long timespec64_to_jiffies(const struct timespec64 *value); | 422 | extern unsigned long timespec64_to_jiffies(const struct timespec64 *value); |
| 423 | extern void jiffies_to_timespec64(const unsigned long jiffies, | 423 | extern void jiffies_to_timespec64(const unsigned long jiffies, |
| 424 | struct timespec64 *value); | 424 | 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 | |||
| 445 | extern clock_t jiffies_to_clock_t(unsigned long x); | 425 | extern clock_t jiffies_to_clock_t(unsigned long x); |
| 446 | static inline clock_t jiffies_delta_to_clock_t(long delta) | 426 | static inline clock_t jiffies_delta_to_clock_t(long delta) |
| 447 | { | 427 | { |