Lines Matching defs:temp
119 static int cpu_check_overtemp(s32 temp)
126 if (temp >= (cpu_all_tmax + LOW_OVER_IMMEDIATE)) {
132 if (temp >= (cpu_all_tmax + HIGH_OVER_IMMEDIATE)) {
148 cpu_thist[i] = temp;
149 cpu_thist_total += temp;
159 cpu_thist[cpu_thist_pt] = temp;
162 cpu_thist_total += temp;
166 FIX32TOPRINT(t_avg), FIX32TOPRINT(t_old), FIX32TOPRINT(temp));
194 (temp < (cpu_all_tmax + LOW_OVER_CLEAR))) {
202 static int read_one_cpu_vals(int cpu, s32 *temp, s32 *power)
210 DBG(" CPU%d: temp reading error !\n", cpu);
213 DBG_LOTS(" CPU%d: temp = %d.%03d\n", cpu, FIX32TOPRINT((dtemp)));
214 *temp = dtemp;
248 s32 speed, temp, power, t_max = 0;
258 err = read_one_cpu_vals(cpu, &temp, &power);
265 /* Keep track of highest temp */
266 t_max = max(t_max, temp);
273 wf_cpu_pid_run(sp, power, temp);
367 s32 temp, dtemp;
384 err = wf_sensor_get(backside_temp, &temp);
386 printk(KERN_WARNING "windfarm: U3 temp sensor error %d\n",
392 speed = wf_pid_run(&backside_pid, temp);
394 DBG_LOTS("backside PID temp=%d.%.3d speed=%d\n",
395 FIX32TOPRINT(temp), speed);
399 printk(KERN_WARNING "windfarm: DIMMs temp sensor error %d\n",
454 s32 temp;
466 err = wf_sensor_get(slots_temp, &temp);
468 pr_warn("wf_rm31: slots temp sensor error %d\n", err);
473 speed = wf_pid_run(&slots_pid, temp);
475 DBG_LOTS("slots PID temp=%d.%.3d speed=%d\n",
476 FIX32TOPRINT(temp), speed);
609 if (!strcmp(sr->name, "cpu-diode-temp-0"))
611 else if (!strcmp(sr->name, "cpu-diode-temp-1"))
621 else if (!strcmp(sr->name, "backside-temp"))
623 else if (!strcmp(sr->name, "slots-temp"))
625 else if (!strcmp(sr->name, "dimms-temp"))