]> git.baikalelectronics.ru Git - kernel.git/commit
cacheinfo: Move cache_leaves_are_shared out of CONFIG_OF
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:15:48 +0000 (11:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:28 +0000 (16:22 +0100)
commit147620b4eb53b89ef5a0b813403ff2dd3c1dfc62
treeae0a11039774a72397b94b48dc03ea40f7c9e671
parentf70819b9fe0a3a8a1231e5357899c393924ce520
cacheinfo: Move cache_leaves_are_shared out of CONFIG_OF

cache_leaves_are_shared is already used even with ACPI and PPTT. It
checks if the cache leaves are the shared based on fw_token pointer.
However it is defined conditionally only if CONFIG_OF is enabled which
is wrong.

Move the function cache_leaves_are_shared out of CONFIG_OF and keep it
generic. It also handles the case where both OF and ACPI is not defined.

Link: https://lore.kernel.org/r/20220704101605.1318280-5-sudeep.holla@arm.com
Tested-by: Ionela Voinescu <ionela.voinescu@arm.com>
Tested-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/base/cacheinfo.c