]> git.itanic.dy.fi Git - linux-stable/commitdiff
selftests/resctrl: Remove duplicate feature check from CMT test
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 2 Oct 2023 09:48:09 +0000 (12:48 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 13 Oct 2023 20:54:16 +0000 (14:54 -0600)
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>
tools/testing/selftests/resctrl/cmt_test.c

index cf2f5e92dea6e5247974cbc034279040864c173b..50bdbce9fba95f9b16c0526b98f64229450d0058 100644 (file)
@@ -80,9 +80,6 @@ int cmt_resctrl_val(int cpu_no, int n, const char * const *benchmark_cmd)
        size_t span;
        int ret, i;
 
-       if (!validate_resctrl_feature_request(CMT_STR))
-               return -1;
-
        ret = get_cbm_mask("L3", cbm_mask);
        if (ret)
                return ret;