From: Yu Jiahua yujiahua1@huawei.com
hulk inclusion category: feature bugzilla: 175551 https://gitee.com/openeuler/kernel/issues/I4DDEL
--------
sched_blocked_averages is trun on in most cases, it should be static_branch_likely rather than static_branch_unlikely.
Signed-off-by: Yu Jiahua yujiahua1@huawei.com Reviewed-by: Chen Hui judy.chenhui@huawei.com Signed-off-by: Chen Jun chenjun102@huawei.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 96793d50c621..bd42f8e9f5ad 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8327,7 +8327,7 @@ static void update_blocked_averages(int cpu) update_rq_clock(rq);
#ifdef CONFIG_SCHED_OPTIMIZE_LOAD_TRACKING - if (!static_branch_unlikely(&sched_blocked_averages)) { + if (!static_branch_likely(&sched_blocked_averages)) { rq_unlock_irqrestore(rq, &rf); return; }