Commit ae2b2490 authored by Nadav Amit's avatar Nadav Amit Committed by Zheng Zengkai
Browse files

smp: Inline on_each_cpu_cond() and on_each_cpu()

mainline inclusion
from mainline-v5.13-rc1
commit a5aa5ce3
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I3ZV2C


CVE: NA

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

Simplify the code and avoid having an additional function on the stack
by inlining on_each_cpu_cond() and on_each_cpu().

Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarNadav Amit <namit@vmware.com>
[ Minor edits. ]
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210220231712.2475218-10-namit@vmware.com



conflict:
	include/linux/smp.h

Signed-off-by: default avatarTong Tiangen <tongtiangen@huawei.com>
Reviewed-by: default avatarChen Wandun <chenwandun@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 82672cc0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment