未验证 提交 85c2b796 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!1611 sched: Fix build error for dynamic_affinity_enable()

Merge Pull Request from: @ci-robot 
 
PR sync from: Hui Tang <tanghui20@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/6VOVLX7JNJMSBWIH6TBFRFMXDKVTP6ME/ 
 
https://gitee.com/openeuler/kernel/issues/I7PNAF 
 
Link:https://gitee.com/openeuler/kernel/pulls/1611 

Reviewed-by: Zucheng Zheng <zhengzucheng@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
......@@ -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.
先完成此消息的编辑!
想要评论请 注册