提交 45167ba0 编写于 作者: P Peter Zijlstra 提交者: Zheng Zengkai

sched: Always inline is_percpu_thread()

stable inclusion
from stable-5.10.74
commit bb893f075431e97dd72cde0721957a73d26578a8
bugzilla: 182986 https://gitee.com/openeuler/kernel/issues/I4I3MG

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bb893f075431e97dd72cde0721957a73d26578a8

--------------------------------

[ Upstream commit 83d40a61 ]

  vmlinux.o: warning: objtool: check_preemption_disabled()+0x81: call to is_percpu_thread() leaves .noinstr.text section
Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210928084218.063371959@infradead.orgSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Reviewed-by: NWeilong Chen <chenweilong@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 7aa7aace
...@@ -1590,7 +1590,7 @@ extern struct pid *cad_pid; ...@@ -1590,7 +1590,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册