Skip to content
Commit 66bfab50 authored by Sudeep Holla's avatar Sudeep Holla Committed by Deepak Kumar Mishra
Browse files

cacheinfo: Add support to check if last level cache(LLC) is valid or shared



It is useful to have helper to check if the given two CPUs share last
level cache. We can do that check by comparing fw_token or by comparing
the cache ID. Currently we check just for fw_token as the cache ID is
optional.

This helper can be used to build the llc_sibling during arch specific
topology parsing and feeding information to the sched_domains. This also
helps to get rid of llc_id in the CPU topology as it is sort of duplicate
information.

Also add helper to check if the llc information in cacheinfo is valid
or not.

Tested-by: Ionela Voinescu's avatarIonela Voinescu <ionela.voinescu@arm.com>
Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
parent ac41def4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment