Commit 247b8dd6 authored by Li Hua's avatar Li Hua Committed by Zheng Zengkai
Browse files

sched/idle: Optimize the loop time algorithm to reduce multicore disturb

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



The idle cpu will call ktime_get frequently. The smp_rmb() will influence the
share cache, especially arm a15 share L2 cache. The performance drop will enlarge
when the loop time is millisecond level.

Signed-off-by: default avatarLi Hua <hucool.lihua@huawei.com>
Reviewed-by: default avatarChen Hui <judy.chenhui@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fd954cee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment