diff --git a/include/linux/sched.h b/include/linux/sched.h index 4a7e4d333a275c3a475df99761a45d1a6e158a55..56fa25a5b1eb5e087b12e94420f2973ee30dcad0 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2074,7 +2074,7 @@ 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) +static inline bool is_idle_task(const struct task_struct *p) { return p->pid == 0; }