[lkml]   [2020]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[GIT pull] sched/urgent for v5.9-rc2

please pull the latest sched/urgent branch from:

git:// sched-urgent-2020-08-30

up to: c94a88f341c9: sched: Use __always_inline on is_idle_task()

A single fix for the scheduler:

- Make is_idle_task() __always_inline to prevent the compiler from putting
it out of line into the wrong section because it's used inside noinstr



Marco Elver (1):
sched: Use __always_inline on is_idle_task()

include/linux/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 93ecd930efd3..afe01e232935 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);
 \ /
  Last update: 2020-08-30 20:04    [W:0.255 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site