ktime: Change ktime_set() to take 64bit seconds value
[deliverable/linux.git] / include / linux / ktime.h
index 74eaba9b3569484a524c139566b88e92475087d1..538c283714e1b2e891a86ad238360fb3b708a677 100644 (file)
@@ -47,13 +47,12 @@ typedef union ktime ktime_t;                /* Kill this */
  *
  * Return: The ktime_t representation of the value.
  */
-static inline ktime_t ktime_set(const long secs, const unsigned long nsecs)
+static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs)
 {
-#if (BITS_PER_LONG == 64)
        if (unlikely(secs >= KTIME_SEC_MAX))
                return (ktime_t){ .tv64 = KTIME_MAX };
-#endif
-       return (ktime_t) { .tv64 = (s64)secs * NSEC_PER_SEC + (s64)nsecs };
+
+       return (ktime_t) { .tv64 = secs * NSEC_PER_SEC + (s64)nsecs };
 }
 
 /* Subtract two ktime_t variables. rem = lhs -rhs: */
This page took 0.025121 seconds and 5 git commands to generate.