mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
tools/power/x86/intel-speed-select: Remove dead code
Remove dead code. Not functional change in this patch Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
09db040339
commit
190ba96541
@ -666,20 +666,6 @@ static void create_cpu_map(void)
|
|||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
int find_logical_cpu(int pkg_id, int die_id, int punit_core_id)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 0; i < topo_max_cpus; ++i) {
|
|
||||||
if (cpu_map[i].pkg_id == pkg_id &&
|
|
||||||
cpu_map[i].die_id == die_id &&
|
|
||||||
cpu_map[i].punit_cpu_core == punit_core_id)
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void set_cpu_mask_from_punit_coremask(int cpu, unsigned long long core_mask,
|
void set_cpu_mask_from_punit_coremask(int cpu, unsigned long long core_mask,
|
||||||
size_t core_cpumask_size,
|
size_t core_cpumask_size,
|
||||||
cpu_set_t *core_cpumask, int *cpu_cnt)
|
cpu_set_t *core_cpumask, int *cpu_cnt)
|
||||||
|
@ -361,30 +361,6 @@ int isst_get_trl_bucket_info(int cpu, unsigned long long *buckets_info)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int isst_set_tdp_level_msr(int cpu, int tdp_level)
|
|
||||||
{
|
|
||||||
unsigned long long level = tdp_level;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
debug_printf("cpu: tdp_level via MSR %d\n", cpu, tdp_level);
|
|
||||||
|
|
||||||
if (isst_get_config_tdp_lock_status(cpu)) {
|
|
||||||
isst_display_error_info_message(1, "tdp_locked", 0, 0);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (tdp_level > 2)
|
|
||||||
return -1; /* invalid value */
|
|
||||||
|
|
||||||
ret = isst_send_msr_command(cpu, 0x64b, 1, &level);
|
|
||||||
if (ret)
|
|
||||||
return ret;
|
|
||||||
|
|
||||||
debug_printf("cpu: tdp_level via MSR successful %d\n", cpu, tdp_level);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int isst_set_tdp_level(int cpu, int tdp_level)
|
int isst_set_tdp_level(int cpu, int tdp_level)
|
||||||
{
|
{
|
||||||
unsigned int resp;
|
unsigned int resp;
|
||||||
|
@ -183,8 +183,6 @@ extern int get_physical_package_id(int cpu);
|
|||||||
extern int get_physical_die_id(int cpu);
|
extern int get_physical_die_id(int cpu);
|
||||||
extern size_t alloc_cpu_set(cpu_set_t **cpu_set);
|
extern size_t alloc_cpu_set(cpu_set_t **cpu_set);
|
||||||
extern void free_cpu_set(cpu_set_t *cpu_set);
|
extern void free_cpu_set(cpu_set_t *cpu_set);
|
||||||
extern int find_logical_cpu(int pkg_id, int die_id, int phy_cpu);
|
|
||||||
extern int find_phy_cpu_num(int logical_cpu);
|
|
||||||
extern int find_phy_core_num(int logical_cpu);
|
extern int find_phy_core_num(int logical_cpu);
|
||||||
extern void set_cpu_mask_from_punit_coremask(int cpu,
|
extern void set_cpu_mask_from_punit_coremask(int cpu,
|
||||||
unsigned long long core_mask,
|
unsigned long long core_mask,
|
||||||
@ -218,7 +216,6 @@ extern void isst_ctdp_display_information_end(FILE *outf);
|
|||||||
extern void isst_pbf_display_information(int cpu, FILE *outf, int level,
|
extern void isst_pbf_display_information(int cpu, FILE *outf, int level,
|
||||||
struct isst_pbf_info *info);
|
struct isst_pbf_info *info);
|
||||||
extern int isst_set_tdp_level(int cpu, int tdp_level);
|
extern int isst_set_tdp_level(int cpu, int tdp_level);
|
||||||
extern int isst_set_tdp_level_msr(int cpu, int tdp_level);
|
|
||||||
extern int isst_set_pbf_fact_status(int cpu, int pbf, int enable);
|
extern int isst_set_pbf_fact_status(int cpu, int pbf, int enable);
|
||||||
extern int isst_get_pbf_info(int cpu, int level,
|
extern int isst_get_pbf_info(int cpu, int level,
|
||||||
struct isst_pbf_info *pbf_info);
|
struct isst_pbf_info *pbf_info);
|
||||||
@ -245,8 +242,6 @@ extern int isst_clos_get_assoc_status(int cpu, int *clos_id);
|
|||||||
extern void isst_clos_display_information(int cpu, FILE *outf, int clos,
|
extern void isst_clos_display_information(int cpu, FILE *outf, int clos,
|
||||||
struct isst_clos_config *clos_config);
|
struct isst_clos_config *clos_config);
|
||||||
extern void isst_clos_display_assoc_information(int cpu, FILE *outf, int clos);
|
extern void isst_clos_display_assoc_information(int cpu, FILE *outf, int clos);
|
||||||
extern int isst_read_reg(unsigned short reg, unsigned int *val);
|
|
||||||
extern int isst_write_reg(int reg, unsigned int val);
|
|
||||||
|
|
||||||
extern void isst_display_result(int cpu, FILE *outf, char *feature, char *cmd,
|
extern void isst_display_result(int cpu, FILE *outf, char *feature, char *cmd,
|
||||||
int result);
|
int result);
|
||||||
|
Loading…
Reference in New Issue
Block a user