Searched refs:cpu_label (Results 1 – 2 of 2) sorted by relevance
41 static char **cpu_label; variable73 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()
39 static const char * cpu_label = "cpu"; in get_cpu_label() local40 return cpu_label; in get_cpu_label()