diff options
| author | Shrikanth Hegde <sshegde@linux.ibm.com> | 2026-04-27 07:47:12 +0300 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-06-02 08:54:31 +0300 |
| commit | 1ca0c82bbc72e8e3de0a41e6dbf92473c00f3d1e (patch) | |
| tree | 0746884bd3c1719a94ea3deddc25209ca198d55e /include/linux/stackprotector.h | |
| parent | b3580dd1c68cec23d44a39c439e18b4686c13480 (diff) | |
| download | linux-1ca0c82bbc72e8e3de0a41e6dbf92473c00f3d1e.tar.xz | |
powerpc: Use cpumask_next_wrap instead
cpu = cpumask_next(cpu, mask)
if (cpu >= nr_cpu_ids)
cpu = cpumask_first(mask)
Above block is identical to:
cpu = cpumask_next_wrap(cpu, mask)
Replace it, No change in functionality or performance.
Slightly simpler code.
Reviewed-by: Yury Norov <ynorov@nvidia.com>
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Reviewed-by: Yury Norov <ynorov@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260427044715.559137-2-sshegde@linux.ibm.com
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
