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