diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2022-07-04 13:15:50 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2022-07-04 18:22:28 +0300 |
commit | 36bbc5b4ffab33ccac0f4db27f619a6ba7a4fd32 (patch) | |
tree | b2440c643ee3117820167b7bf21f7222c402367b /include/linux/cacheinfo.h | |
parent | cc1cfc47ea47187a21ec1f079b3c53264157fe15 (diff) | |
download | linux-36bbc5b4ffab33ccac0f4db27f619a6ba7a4fd32.tar.xz |
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>
Diffstat (limited to 'include/linux/cacheinfo.h')
-rw-r--r-- | include/linux/cacheinfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cacheinfo.h b/include/linux/cacheinfo.h index 7e429bc5c1a4..00b7a6ae8617 100644 --- a/include/linux/cacheinfo.h +++ b/include/linux/cacheinfo.h @@ -84,6 +84,7 @@ int populate_cache_leaves(unsigned int cpu); int cache_setup_acpi(unsigned int cpu); bool last_level_cache_is_valid(unsigned int cpu); bool last_level_cache_is_shared(unsigned int cpu_x, unsigned int cpu_y); +int detect_cache_attributes(unsigned int cpu); #ifndef CONFIG_ACPI_PPTT /* * acpi_find_last_cache_level is only called on ACPI enabled |