mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
config_tools: check cat capability info in cat info parser
check cat capability info in cat info parser Tracked-On: #6691 Signed-off-by: Weiyi Feng <weiyix.feng@intel.com>
This commit is contained in:
parent
4ab74ffb3e
commit
11204a378d
@ -86,14 +86,14 @@ def get_cat_info(soup):
|
||||
for cache in caches:
|
||||
cache_level = int(cache.attrs['level'])
|
||||
|
||||
# ignore cache_level 1 and single core cache region
|
||||
if cache_level == 1 or len(processors := cache.select('processors processor')) <= 1:
|
||||
# ignore cache_level 1 and single core cache region
|
||||
continue
|
||||
# ignore no CAT capability cache region
|
||||
if cache.select_one('#CAT') is None:
|
||||
continue
|
||||
|
||||
capacity_mask_length = cache.select_one('capability capacity_mask_length')
|
||||
if not capacity_mask_length:
|
||||
# some region not have capacity_mask_length
|
||||
capacity_mask_length = cache.select_one('ways')
|
||||
capacity_mask_length = int(capacity_mask_length.text)
|
||||
|
||||
processors = [int(threads[processor.text]) for processor in processors]
|
||||
|
Loading…
Reference in New Issue
Block a user