Home
last modified time | relevance | path

Searched refs:cpu_label (Results 1 – 4 of 4) sorted by relevance

/hardware/qcom/sm8150/thermal/
Dthermal_common.c41 static char **cpu_label; variable
73 if (cpu_label == NULL) { in get_cpu_label()
74 cpu_label= (char**)calloc(get_num_cpus(), sizeof(char *)); in get_cpu_label()
75 if (!cpu_label) in get_cpu_label()
78 cpu_label[cpu] = (char *)calloc(sizeof("CPUN"), sizeof(char)); in get_cpu_label()
79 if(!cpu_label[cpu]) in get_cpu_label()
81 snprintf(cpu_label[cpu], sizeof("CPUN"), CPU_LABEL, cpu); in get_cpu_label()
87 return cpu_label[cpu_num]; in get_cpu_label()
Dthermal.c39 static const char * cpu_label = "cpu"; in get_cpu_label() local
40 return cpu_label; in get_cpu_label()
/hardware/qcom/sdm845/thermal/
Dthermal_common.c41 static char **cpu_label; variable
73 if (cpu_label == NULL) { in get_cpu_label()
74 cpu_label= (char**)calloc(get_num_cpus(), sizeof(char *)); in get_cpu_label()
75 if (!cpu_label) in get_cpu_label()
78 cpu_label[cpu] = (char *)calloc(sizeof("CPUN"), sizeof(char)); in get_cpu_label()
79 if(!cpu_label[cpu]) in get_cpu_label()
81 snprintf(cpu_label[cpu], sizeof("CPUN"), CPU_LABEL, cpu); in get_cpu_label()
87 return cpu_label[cpu_num]; in get_cpu_label()
Dthermal.c39 static const char * cpu_label = "cpu"; in get_cpu_label() local
40 return cpu_label; in get_cpu_label()