diff options
| author | Fushuai Wang <wangfushuai@baidu.com> | 2025-08-11 14:25:34 +0800 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-08-13 07:05:40 -0400 |
| commit | 211dc59b7bb5ea0a6ea29072f04a4498c7ab046b (patch) | |
| tree | 74d6082fc28ca84c6113251d122572b045e654f9 /drivers/infiniband | |
| parent | 44d69d3cf2e8047c279cbb9708f05e2c43e33234 (diff) | |
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>
Diffstat (limited to 'drivers/infiniband')
| -rw-r--r-- | drivers/infiniband/hw/hfi1/sdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/sdma.c b/drivers/infiniband/hw/hfi1/sdma.c index 719b7c34e238..5cfa4f8fbf3d 100644 --- a/drivers/infiniband/hw/hfi1/sdma.c +++ b/drivers/infiniband/hw/hfi1/sdma.c @@ -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 */ |
