]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/sched/core.c
mm: fix devm_memremap_pages crash, use mem_hotplug_{begin, done}
[linux.git] / kernel / sched / core.c
index 966556ebdbb3fd68c272c8bc1cbffde252d4de45..c56fb57f2991ef4f2a68395c534b32d3053ae208 100644 (file)
@@ -1456,7 +1456,7 @@ unsigned long wait_task_inactive(struct task_struct *p, long match_state)
                 * yield - it could be a while.
                 */
                if (unlikely(queued)) {
-                       ktime_t to = ktime_set(0, NSEC_PER_SEC/HZ);
+                       ktime_t to = NSEC_PER_SEC / HZ;
 
                        set_current_state(TASK_UNINTERRUPTIBLE);
                        schedule_hrtimeout(&to, HRTIMER_MODE_REL);