From: Marco Elver Date: Thu, 20 Aug 2020 17:20:46 +0000 (+0200) Subject: sched: Use __always_inline on is_idle_task() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c94a88f341c9b8f05d8639f62bb5d95936f881cd;p=linux.git sched: Use __always_inline on is_idle_task() is_idle_task() may be used from noinstr functions such as irqentry_enter(). Since the compiler is free to not inline regular inline functions, switch to using __always_inline. Signed-off-by: Marco Elver Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200820172046.GA177701@elver.google.com --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 93ecd930efd31..afe01e232935f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1666,7 +1666,7 @@ extern struct task_struct *idle_task(int cpu); * * Return: 1 if @p is an idle task. 0 otherwise. */ -static inline bool is_idle_task(const struct task_struct *p) +static __always_inline bool is_idle_task(const struct task_struct *p) { return !!(p->flags & PF_IDLE); }