diff options
| author | Shrikanth Hegde <sshegde@linux.ibm.com> | 2026-04-27 07:47:13 +0300 |
|---|---|---|
| committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2026-06-02 08:54:32 +0300 |
| commit | a66eab7a5d7decadad51b4204c6f2f0d8cf665d1 (patch) | |
| tree | 77a520c37770af8e5d4b8ff058428098fbf42bcd /include/linux/stackprotector.h | |
| parent | 1ca0c82bbc72e8e3de0a41e6dbf92473c00f3d1e (diff) | |
| download | linux-a66eab7a5d7decadad51b4204c6f2f0d8cf665d1.tar.xz | |
powerpc: Simplify cpumask api usage for cpuinfo display
- cpumask_next can take -1 as valid argument. So simplify cpuinfo
iterator.
- Use cpumask_last to find if this_cpu is last online CPU.
/proc/cpuinfo shows same info with patch.
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-3-sshegde@linux.ibm.com
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
