|
@@ -1566,6 +1566,17 @@ signed long __sched schedule_timeout_uninterruptible(signed long timeout)
|
|
|
}
|
|
|
EXPORT_SYMBOL(schedule_timeout_uninterruptible);
|
|
|
|
|
|
+/*
|
|
|
+ * Like schedule_timeout_uninterruptible(), except this task will not contribute
|
|
|
+ * to load average.
|
|
|
+ */
|
|
|
+signed long __sched schedule_timeout_idle(signed long timeout)
|
|
|
+{
|
|
|
+ __set_current_state(TASK_IDLE);
|
|
|
+ return schedule_timeout(timeout);
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(schedule_timeout_idle);
|
|
|
+
|
|
|
#ifdef CONFIG_HOTPLUG_CPU
|
|
|
static void migrate_timer_list(struct tvec_base *new_base, struct hlist_head *head)
|
|
|
{
|