mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-21 23:04:54 -04:00
IB/hfi1: Use for_each_online_cpu() instead of for_each_cpu()
Replace the opencoded for_each_cpu(cpu, cpu_online_mask) loop with the more readable and equivalent for_each_online_cpu(cpu) macro. Signed-off-by: Fushuai Wang <wangfushuai@baidu.com> Link: https://patch.msgid.link/20250811062534.1041-1-wangfushuai@baidu.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
committed by
Leon Romanovsky
parent
44d69d3cf2
commit
211dc59b7b
@@ -990,7 +990,7 @@ ssize_t sdma_set_cpu_to_sde_map(struct sdma_engine *sde, const char *buf,
|
||||
}
|
||||
|
||||
/* Clean up old mappings */
|
||||
for_each_cpu(cpu, cpu_online_mask) {
|
||||
for_each_online_cpu(cpu) {
|
||||
struct sdma_rht_node *rht_node;
|
||||
|
||||
/* Don't cleanup sdes that are set in the new mask */
|
||||
|
||||
Reference in New Issue
Block a user