aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/powerpc/cpufreq/pcr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/powerpc/cpufreq/pcr.c b/sys/powerpc/cpufreq/pcr.c
index 5dacaaae3db4..08e9a33aade7 100644
--- a/sys/powerpc/cpufreq/pcr.c
+++ b/sys/powerpc/cpufreq/pcr.c
@@ -202,6 +202,11 @@ pcr_attach(device_t dev)
return (ENXIO);
}
+ if (OF_getproplen(cpu, "power-mode-data") <= 0) {
+ /* Use the first CPU's node */
+ cpu = OF_child(OF_parent(cpu));
+ }
+
/*
* Collect the PCR values for each mode from the device tree.
* These include bus timing information, and so cannot be