Context: OBSD macppc 7.6, 7.7, 7.8, 7.9
iMag G5 (2004) (ppc970)

On this single-core machine all versions of OBSD from 7.6 to 7.9
misidentify the processor as a 900mhz model when it is much faster.
A lowball 70C ceiling is assumed for the system, which results in the
watchdog shutting the system down when the temp is exceeded x times in
succession.  

The code is in thermal.c (architecture macppc)

the patch is (SNIPPET)

+++ sys/arch/macppc/dev/thermal.c       Fri May 22 19:05:00 2026
@@ -75,6 +75,9 @@
                if (temp > 0) /* Use the previous temp in case of
error */
                        sensor->last_val = temp;
 
+               /* FORCE THE HARDWARE PROFILE LIMIT GLOBALLY TO 80C */
+               sensor->sensor->max_temp = 80 * 1000000 + 273150000;
+
                if (sensor->last_val > sensor->sensor->max_temp) {
                        sensor->critical_count++;
                        printf("WARNING: Current temperature (%s:
%d.%d C) "

The operative line immediately follows the /* Force the ..... comment.

After the recompiled kernel is invoked, the system won't do that
anymore unless it gets REALLY hot.

I discovered this in 7.6 and put the machine aside for a while.  Last
night I took it out, found out why, and fixed it.

best,

jeff (Technoid Mutant)

Reply via email to