Home
last modified time | relevance | path

Searched refs:count_of_bits (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/resctrl/
H A Dcat_test.c97 int count_of_bits; in cat_perf_miss_val() local
115 count_of_bits = count_bits(long_mask); in cat_perf_miss_val()
118 n = count_of_bits / 2; in cat_perf_miss_val()
120 if (n > count_of_bits - 1) { in cat_perf_miss_val()
123 count_of_bits - 1); in cat_perf_miss_val()
144 span = cache_size * (count_of_bits - n) / count_of_bits; in cat_perf_miss_val()
166 span = cache_size * n / count_of_bits; in cat_perf_miss_val()
H A Dcmt_test.c79 int count_of_bits; in cmt_resctrl_val() local
94 count_of_bits = count_bits(long_mask); in cmt_resctrl_val()
96 if (n < 1 || n > count_of_bits) { in cmt_resctrl_val()
98 ksft_print_msg("Please enter value in range 1 to %d\n", count_of_bits); in cmt_resctrl_val()
113 span = cache_size * n / count_of_bits; in cmt_resctrl_val()