Message ID | 20231018075526.2251-1-ilpo.jarvinen@linux.intel.com |
---|---|
State | Accepted |
Commit | 5247e6dbed0041147a83137f89cd45043301de5c |
Headers | show |
Series | [v2,1/1] selftests/resctrl: Fix MBM test failure when MBA unavailable | expand |
diff --git a/tools/testing/selftests/resctrl/mbm_test.c b/tools/testing/selftests/resctrl/mbm_test.c index d3c0d30c676a..741533f2b075 100644 --- a/tools/testing/selftests/resctrl/mbm_test.c +++ b/tools/testing/selftests/resctrl/mbm_test.c @@ -95,7 +95,7 @@ static int mbm_setup(struct resctrl_val_param *p) return END_OF_TESTS; /* Set up shemata with 100% allocation on the first run. */ - if (p->num_of_runs == 0) + if (p->num_of_runs == 0 && validate_resctrl_feature_request("MB", NULL)) ret = write_schemata(p->ctrlgrp, "100", p->cpu_no, p->resctrl_val);