Lines Matching refs:temp
130 char temp[1024]; in get_cpu_frequency() local
136 while (fgets (temp, 1024, procf) != NULL) in get_cpu_frequency()
138 if (strncmp (temp, "processor", strlen ("processor")) == 0) in get_cpu_frequency()
140 char *val = strchr (temp, ':'); in get_cpu_frequency()
144 else if (strncmp (temp, "model", strlen ("model")) == 0 in get_cpu_frequency()
145 && strstr (temp, "name") == 0) in get_cpu_frequency()
147 char *val = strchr (temp, ':'); in get_cpu_frequency()
150 else if (strncmp (temp, "cpu family", strlen ("cpu family")) == 0) in get_cpu_frequency()
152 char *val = strchr (temp, ':'); in get_cpu_frequency()
156 else if (strncmp (temp, "cpu MHz", strlen ("cpu MHz")) == 0) in get_cpu_frequency()
158 char *val = strchr (temp, ':'); in get_cpu_frequency()
170 if (fgets (temp, 1024, cpufreqd) != NULL in get_cpu_frequency()
171 && strncmp (temp, "intel_pstate", sizeof ("intel_pstate") - 1) == 0) in get_cpu_frequency()
183 if (fgets (temp, 1024, pstatent) != NULL) in get_cpu_frequency()
184 if (strncmp (temp, "1", sizeof ("1") - 1) == 0) in get_cpu_frequency()
199 if (fgets (temp, 1024, cpufreqf) != NULL) in get_cpu_frequency()
202 if (strncmp (temp, "ondemand", sizeof ("ondemand") - 1) == 0) in get_cpu_frequency()
205 if (strncmp (temp, "performance", sizeof ("performance") - 1) == 0) in get_cpu_frequency()
208 if (strncmp (temp, "powersave", sizeof ("powersave") - 1) == 0) in get_cpu_frequency()
219 if (fgets (temp, 1024, cpufreqf_max) != NULL) in get_cpu_frequency()
221 int tmpmhz = atoi (temp); in get_cpu_frequency()
238 if (fgets (temp, 1024, cpufreqf_ava) != NULL) in get_cpu_frequency()
240 if (strchr (temp, ' ') != strrchr (temp, ' ') && ondemand) in get_cpu_frequency()
251 if (strstr (temp, non_turbo_max_freq)) in get_cpu_frequency()
280 else if (strncmp (temp, "Cpu", 3) == 0 && temp[3] != '\0' && in get_cpu_frequency()
281 strncmp (strchr (temp + 1, 'C') ? strchr (temp + 1, 'C') : (temp + 4), "ClkTck", 6) == 0) in get_cpu_frequency()
283 char *val = strchr (temp, ':'); in get_cpu_frequency()