]> git.itanic.dy.fi Git - linux-stable/commit
cacheinfo: Allow early detection and population of cache attributes
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 10:15:50 +0000 (11:15 +0100)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 4 Jul 2022 15:22:28 +0000 (16:22 +0100)
commit36bbc5b4ffab33ccac0f4db27f619a6ba7a4fd32
treeb2440c643ee3117820167b7bf21f7222c402367b
parentcc1cfc47ea47187a21ec1f079b3c53264157fe15
cacheinfo: Allow early detection and population of cache attributes

Some architecture/platforms may need to setup cache properties very
early in the boot along with other cpu topologies so that all these
information can be used to build sched_domains which is used by the
scheduler.

Allow detect_cache_attributes to be called quite early during the boot.

Link: https://lore.kernel.org/r/20220704101605.1318280-7-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
include/linux/cacheinfo.h