@@ -301,9 +301,15 @@ static inline unsigned long timespec64_to_jiffies(const struct timespec64 *value
return __timespec_to_jiffies(value->tv_sec, value->tv_nsec);
}
-
-extern void jiffies_to_timespec(const unsigned long jiffies,
- struct timespec *value);
+extern void jiffies_to_timespec64(const unsigned long jiffies,
+ struct timespec64 *value);
+static inline void jiffies_to_timespec(const unsigned long jiffies,
+ struct timespec *value)
+{
+ struct timespec64 ts64;
+ jiffies_to_timespec64(jiffies, &ts64);
+ *value = timespec64_to_timespec(ts64);
+}
extern unsigned long timeval_to_jiffies(const struct timeval *value);
extern void jiffies_to_timeval(const unsigned long jiffies,
struct timeval *value);
@@ -588,7 +588,7 @@ __timespec_to_jiffies(unsigned long sec, long nsec)
EXPORT_SYMBOL(__timespec_to_jiffies);
void
-jiffies_to_timespec(const unsigned long jiffies, struct timespec *value)
+jiffies_to_timespec64(const unsigned long jiffies, struct timespec64 *value)
{
/*
* Convert jiffies to nanoseconds and separate with
Needed for converting sys_sched_rr_get_interval Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- include/linux/jiffies.h | 12 +++++++++--- kernel/time/time.c | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-)