Skip to content

Commit 030b48f

Browse files
ij-intelshuahkh
authored andcommitted
selftests/resctrl: Remove duplicate feature check from CMT test
The test runner run_cmt_test() in resctrl_tests.c checks for CMT feature and does not run cmt_resctrl_val() if CMT is not supported. Then cmt_resctrl_val() also check is CMT is supported. Remove the duplicated feature check for CMT from cmt_resctrl_val(). Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Reviewed-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com> Cc: <stable@vger.kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
1 parent 3aff514 commit 030b48f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tools/testing/selftests/resctrl/cmt_test.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ int cmt_resctrl_val(int cpu_no, int n, const char * const *benchmark_cmd)
8080
size_t span;
8181
int ret, i;
8282

83-
if (!validate_resctrl_feature_request(CMT_STR))
84-
return -1;
85-
8683
ret = get_cbm_mask("L3", cbm_mask);
8784
if (ret)
8885
return ret;

0 commit comments

Comments
 (0)