Commit 83d40a61 authored by Peter Zijlstra's avatar Peter Zijlstra

sched: Always inline is_percpu_thread()

  vmlinux.o: warning: objtool: check_preemption_disabled()+0x81: call to is_percpu_thread() leaves .noinstr.text section
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210928084218.063371959@infradead.org
parent 70306618
...@@ -1720,7 +1720,7 @@ extern struct pid *cad_pid; ...@@ -1720,7 +1720,7 @@ extern struct pid *cad_pid;
#define tsk_used_math(p) ((p)->flags & PF_USED_MATH) #define tsk_used_math(p) ((p)->flags & PF_USED_MATH)
#define used_math() tsk_used_math(current) #define used_math() tsk_used_math(current)
static inline bool is_percpu_thread(void) static __always_inline bool is_percpu_thread(void)
{ {
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
return (current->flags & PF_NO_SETAFFINITY) && return (current->flags & PF_NO_SETAFFINITY) &&
......
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