提交 4a6ae615 编写于 作者: Z Zhouyi Zhou 提交者: Zheng Zengkai

preempt/dynamic: Fix typo in macro conditional statement

mainline inclusion
from mainline-v5.12
commit 0c89d87d
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I61CQ3

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

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

Commit 40607ee9 ("preempt/dynamic: Provide irqentry_exit_cond_resched()
static call") tried to provide irqentry_exit_cond_resched() static call
in irqentry_exit, but has a typo in macro conditional statement.

Fixes: 40607ee9 ("preempt/dynamic: Provide irqentry_exit_cond_resched() static call")
Signed-off-by: NZhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210410073523.5493-1-zhouzhouyi@gmail.comSigned-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 6312a11d
...@@ -394,7 +394,7 @@ noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state) ...@@ -394,7 +394,7 @@ noinstr void irqentry_exit(struct pt_regs *regs, irqentry_state_t state)
instrumentation_begin(); instrumentation_begin();
if (IS_ENABLED(CONFIG_PREEMPTION)) { if (IS_ENABLED(CONFIG_PREEMPTION)) {
#ifdef CONFIG_PREEMT_DYNAMIC #ifdef CONFIG_PREEMPT_DYNAMIC
static_call(irqentry_exit_cond_resched)(); static_call(irqentry_exit_cond_resched)();
#else #else
irqentry_exit_cond_resched(); irqentry_exit_cond_resched();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册