Commit 0063a82d authored by Linus Torvalds's avatar Linus Torvalds

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()
parents b69bea8a c94a88f3
...@@ -1666,7 +1666,7 @@ extern struct task_struct *idle_task(int cpu); ...@@ -1666,7 +1666,7 @@ extern struct task_struct *idle_task(int cpu);
* *
* Return: 1 if @p is an idle task. 0 otherwise. * 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); return !!(p->flags & PF_IDLE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment