提交 5cd4e53a 编写于 作者: H Hui Tang

sched: Fix build error for dynamic_affinity_enable()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PNAF

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

Fix build error if defined(!CONFIG_JUMP_LABEL) &&
defined(CONFIG_QOS_SCHED_DYNAMIC_AFFINITY).

Fixes: d8f77f89 ("sched: fix performance degradation on lmbench")
Signed-off-by: NHui Tang <tanghui20@huawei.com>
上级 87684ac5
......@@ -7070,8 +7070,6 @@ static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu)
}
#ifdef CONFIG_QOS_SCHED_DYNAMIC_AFFINITY
#ifdef CONFIG_JUMP_LABEL
static DEFINE_STATIC_KEY_FALSE(__dynamic_affinity_used);
static __always_inline bool dynamic_affinity_used(void)
......@@ -7084,13 +7082,6 @@ void dynamic_affinity_enable(void)
static_branch_enable_cpuslocked(&__dynamic_affinity_used);
}
#else /* CONFIG_JUMP_LABEL */
static __always_inline bool dynamic_affinity_used(void)
{
return true;
}
#endif
/*
* Low utilization threshold for CPU
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册