diff --git a/[refs] b/[refs] index ea48a20d9bf2..972dc07240b1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bb3bf7052de520f2d21a1275e95fac7a84d89e4c +refs/heads/master: c4f3060843506ba6d473ab9a0afe5bd5dc93a00d diff --git a/trunk/include/linux/sched.h b/trunk/include/linux/sched.h index 1c4f3e9b9bc5..4a7e4d333a27 100644 --- a/trunk/include/linux/sched.h +++ b/trunk/include/linux/sched.h @@ -2070,6 +2070,14 @@ extern int sched_setscheduler(struct task_struct *, int, extern int sched_setscheduler_nocheck(struct task_struct *, int, const struct sched_param *); extern struct task_struct *idle_task(int cpu); +/** + * is_idle_task - is the specified task an idle task? + * @tsk: the task in question. + */ +static inline bool is_idle_task(struct task_struct *p) +{ + return p->pid == 0; +} extern struct task_struct *curr_task(int cpu); extern void set_curr_task(int cpu, struct task_struct *p);