Re: [PATCH v4 17/19] selftests/resctrl: Move CAT/CMT test global vars to function they are used in

From: Reinette Chatre
Date: Thu Jul 13 2023 - 20:04:55 EST


Hi Ilpo,

On 7/13/2023 6:19 AM, Ilpo Järvinen wrote:
> CAT and CMT tests have count_of_bits, long_mask, cbm_mask, and
> cache_size global variables that can be moved into the sole using
> function.
>
> Make the global variables local variables of the relevant function to
> scope them better.
>
> While at it, move cache_size initialization into the declaration line.
>
> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
> ---

Thank you.

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette