Jesse Keating 2f82dda
--- linux-2.6.15/drivers/macintosh/therm_pm72.c.orig	2006-04-02 21:34:48.000000000 +0100
Jesse Keating 2f82dda
+++ linux-2.6.15/drivers/macintosh/therm_pm72.c	2006-04-02 22:33:27.000000000 +0100
Jesse Keating 2f82dda
@@ -924,10 +925,16 @@ static void do_monitor_cpu_combined(void
Jesse Keating 2f82dda
 		printk(KERN_WARNING "Warning ! Temperature way above maximum (%d) !\n",
Jesse Keating 2f82dda
 		       temp_combi >> 16);
Jesse Keating 2f82dda
 		state0->overtemp += CPU_MAX_OVERTEMP / 4;
Jesse Keating 2f82dda
-	} else if (temp_combi > (state0->mpu.tmax << 16))
Jesse Keating 2f82dda
+	} else if (temp_combi > (state0->mpu.tmax << 16)) {
Jesse Keating 2f82dda
 		state0->overtemp++;
Jesse Keating 2f82dda
-	else
Jesse Keating 2f82dda
+		printk(KERN_WARNING "Temperature %d above max %d. overtemp %d\n",
Jesse Keating 2f82dda
+		       temp_combi >> 16, state0->mpu.tmax, state0->overtemp);
Jesse Keating 2f82dda
+	} else {
Jesse Keating 2f82dda
+		if (state0->overtemp)
Jesse Keating 2f82dda
+			printk(KERN_WARNING "Temperature back down to %d\n",
Jesse Keating 2f82dda
+			       temp_combi >> 16);
Jesse Keating 2f82dda
 		state0->overtemp = 0;
Jesse Keating 2f82dda
+	}
Jesse Keating 2f82dda
 	if (state0->overtemp >= CPU_MAX_OVERTEMP)
Jesse Keating 2f82dda
 		critical_state = 1;
Jesse Keating 2f82dda
 	if (state0->overtemp > 0) {
Jesse Keating 2f82dda
@@ -999,10 +1015,16 @@ static void do_monitor_cpu_split(struct 
Jesse Keating 2f82dda
 		       " (%d) !\n",
Jesse Keating 2f82dda
 		       state->index, temp >> 16);
Jesse Keating 2f82dda
 		state->overtemp += CPU_MAX_OVERTEMP / 4;
Jesse Keating 2f82dda
-	} else if (temp > (state->mpu.tmax << 16))
Jesse Keating 2f82dda
+	} else if (temp > (state->mpu.tmax << 16)) {
Jesse Keating 2f82dda
 		state->overtemp++;
Jesse Keating 2f82dda
-	else
Jesse Keating 2f82dda
+		printk(KERN_WARNING "CPU %d temperature %d above max %d. overtemp %d\n",
Jesse Keating 2f82dda
+		       state->index, temp >> 16, state->mpu.tmax, state->overtemp);
Jesse Keating 2f82dda
+	} else {
Jesse Keating 2f82dda
+		if (state->overtemp)
Jesse Keating 2f82dda
+			printk(KERN_WARNING "CPU %d temperature back down to %d\n",
Jesse Keating 2f82dda
+			       state->index, temp >> 16);
Jesse Keating 2f82dda
 		state->overtemp = 0;
Jesse Keating 2f82dda
+	}
Jesse Keating 2f82dda
 	if (state->overtemp >= CPU_MAX_OVERTEMP)
Jesse Keating 2f82dda
 		critical_state = 1;
Jesse Keating 2f82dda
 	if (state->overtemp > 0) {
Jesse Keating 2f82dda
@@ -1061,10 +1097,16 @@ static void do_monitor_cpu_rack(struct c
Jesse Keating 2f82dda
 		       " (%d) !\n",
Jesse Keating 2f82dda
 		       state->index, temp >> 16);
Jesse Keating 2f82dda
 		state->overtemp = CPU_MAX_OVERTEMP / 4;
Jesse Keating 2f82dda
-	} else if (temp > (state->mpu.tmax << 16))
Jesse Keating 2f82dda
+	} else if (temp > (state->mpu.tmax << 16)) {
Jesse Keating 2f82dda
 		state->overtemp++;
Jesse Keating 2f82dda
-	else
Jesse Keating 2f82dda
+		printk(KERN_WARNING "CPU %d temperature %d above max %d. overtemp %d\n",
Jesse Keating 2f82dda
+		       state->index, temp >> 16, state->mpu.tmax, state->overtemp);
Jesse Keating 2f82dda
+	} else {
Jesse Keating 2f82dda
+		if (state->overtemp)
Jesse Keating 2f82dda
+			printk(KERN_WARNING "CPU %d temperature back down to %d\n",
Jesse Keating 2f82dda
+			       state->index, temp >> 16);
Jesse Keating 2f82dda
 		state->overtemp = 0;
Jesse Keating 2f82dda
+	}
Jesse Keating 2f82dda
 	if (state->overtemp >= CPU_MAX_OVERTEMP)
Jesse Keating 2f82dda
 		critical_state = 1;
Jesse Keating 2f82dda
 	if (state->overtemp > 0) {
Jesse Keating 2f82dda
--- linux-2.6.15/drivers/macintosh/therm_pm72.h~	2006-01-03 03:21:10.000000000 +0000
Jesse Keating 2f82dda
+++ linux-2.6.15/drivers/macintosh/therm_pm72.h	2006-04-02 22:25:58.000000000 +0100
Jesse Keating 2f82dda
@@ -243,7 +243,7 @@ struct dimm_pid_state
Jesse Keating 2f82dda
 #define CPU_TEMP_HISTORY_SIZE		2
Jesse Keating 2f82dda
 #define CPU_POWER_HISTORY_SIZE		10
Jesse Keating 2f82dda
 #define CPU_PID_INTERVAL		1
Jesse Keating 2f82dda
-#define CPU_MAX_OVERTEMP		30
Jesse Keating 2f82dda
+#define CPU_MAX_OVERTEMP		90
Jesse Keating 2f82dda
 
Jesse Keating 2f82dda
 #define CPUA_PUMP_RPM_INDEX		7
Jesse Keating 2f82dda
 #define CPUB_PUMP_RPM_INDEX		8