aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorIlpo Järvinen <[email protected]>2023-12-15 17:04:55 +0200
committerShuah Khan <[email protected]>2024-02-13 13:56:44 -0700
commit19e94a2333c2babc773e51a9ed844cfc35a36064 (patch)
tree6093db75863cc8566c8635cf5e0cff7e1f8b1ace /net/lapb/lapb_subr.c
parent60c2a6926cc94dcd8a60ab593b4092bc354061c3 (diff)
selftests/resctrl: Create cache_portion_size() helper
CAT and CMT tests calculate size of the cache portion for the n-bits cache allocation on their own. Add cache_portion_size() helper that calculates size of the cache portion for the given number of bits and use it to replace the existing span calculations. This also prepares for the new CAT test that will need to determine the size of the cache portion also during results processing. Rename also 'cache_size' local variables to 'cache_total_size' to prevent misinterpretations. Signed-off-by: Ilpo Järvinen <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions