]> git.baikalelectronics.ru Git - kernel.git/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)
commit86cf2c4cc06ce0902dfb4fce11fc562aef3ddaaa
treeefb0d491b2dd37267916e90a12c80714c308fb3d
parentf35affbddd3591739984513856147f369ca1920a
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