Skip to content

Commit 0063a82

Browse files
committed
Merge tag 'sched-urgent-2020-08-30' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull scheduler fix from Thomas Gleixner: "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 sections" * tag 'sched-urgent-2020-08-30' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: sched: Use __always_inline on is_idle_task()
2 parents b69bea8 + c94a88f commit 0063a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/sched.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ extern struct task_struct *idle_task(int cpu);
16661666
*
16671667
* Return: 1 if @p is an idle task. 0 otherwise.
16681668
*/
1669-
static inline bool is_idle_task(const struct task_struct *p)
1669+
static __always_inline bool is_idle_task(const struct task_struct *p)
16701670
{
16711671
return !!(p->flags & PF_IDLE);
16721672
}

0 commit comments

Comments
 (0)