summaryrefslogtreecommitdiff
path: root/tools/power/x86
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2022-08-20 18:58:17 +0300
committerSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2022-09-15 21:16:05 +0300
commite278336912423834614191e32e9fbd239e320090 (patch)
treec8cba1b303b80adf8d7fb5e15ae72d03c8529ed3 /tools/power/x86
parent190ba96541a3f8f5caa3af41df63af756e43424d (diff)
downloadlinux-e278336912423834614191e32e9fbd239e320090.tar.xz
tools/power/x86/intel-speed-select: Remove unused core_mask array
Remove unused core_mask array. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Diffstat (limited to 'tools/power/x86')
-rw-r--r--tools/power/x86/intel-speed-select/isst-config.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/power/x86/intel-speed-select/isst-config.c b/tools/power/x86/intel-speed-select/isst-config.c
index d66b2263047d..1355e31e692b 100644
--- a/tools/power/x86/intel-speed-select/isst-config.c
+++ b/tools/power/x86/intel-speed-select/isst-config.c
@@ -536,7 +536,6 @@ void free_cpu_set(cpu_set_t *cpu_set)
}
static int cpu_cnt[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE];
-static long long core_mask[MAX_PACKAGE_COUNT][MAX_DIE_PER_PACKAGE];
static void set_cpu_present_cpu_mask(void)
{
size_t size;
@@ -565,12 +564,8 @@ static void set_cpu_present_cpu_mask(void)
continue;
}
if (pkg_id < MAX_PACKAGE_COUNT &&
- die_id < MAX_DIE_PER_PACKAGE) {
- int core_id = get_physical_core_id(i);
-
+ die_id < MAX_DIE_PER_PACKAGE)
cpu_cnt[pkg_id][die_id]++;
- core_mask[pkg_id][die_id] |= (1ULL << core_id);
- }
}
closedir(dir);
}