diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index cf0eb342bcba..40d84481a1c9 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2089,7 +2089,7 @@ extern struct task_struct *idle_task(int cpu); | |||
2089 | * is_idle_task - is the specified task an idle task? | 2089 | * is_idle_task - is the specified task an idle task? |
2090 | * @tsk: the task in question. | 2090 | * @tsk: the task in question. |
2091 | */ | 2091 | */ |
2092 | static inline bool is_idle_task(struct task_struct *p) | 2092 | static inline bool is_idle_task(const struct task_struct *p) |
2093 | { | 2093 | { |
2094 | return p->pid == 0; | 2094 | return p->pid == 0; |
2095 | } | 2095 | } |