]> git.itanic.dy.fi Git - linux-stable/commit
cacheinfo: Align checks in cache_shared_cpu_map_{setup,remove} for readability
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:15:52 +0000 (11:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:28 +0000 (16:22 +0100)
commit521103134a0d07774c8b17f25ff0ef70cbd56c9d
treeefb0d491b2dd37267916e90a12c80714c308fb3d
parentf16d1becf96f0a95dc9e1a5a7f97feeec2b149d5
cacheinfo: Align checks in cache_shared_cpu_map_{setup,remove} for readability

The checks to skip the CPU itself or no cacheinfo case are implemented
bit differently though the effect is exactly same. Just align the
implementation in both cache_shared_cpu_map_{setup,remove} just for
improved readability. No functional change.

Link: https://lore.kernel.org/r/20220704101605.1318280-9-sudeep.holla@arm.com
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/cacheinfo.c