summaryrefslogtreecommitdiffstats
path: root/sys/i386/cpufreq/est.c
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-27 02:43:02 +0000
committernjl <njl@FreeBSD.org>2005-02-27 02:43:02 +0000
commit0dae5d8c1d1ea90f8518e5d25c44ab7bb0d82ace (patch)
treed74a00967ac027e61016fbf7128f8de321bdb358 /sys/i386/cpufreq/est.c
parentada3533e8b6a7346419b1f7821c9e8e434fe5054 (diff)
downloadFreeBSD-src-0dae5d8c1d1ea90f8518e5d25c44ab7bb0d82ace.zip
FreeBSD-src-0dae5d8c1d1ea90f8518e5d25c44ab7bb0d82ace.tar.gz
Make a pass through all drivers checking specs for desired behavior on
SMP systems. It appears all drivers except ichss should attach to each CPU and that settings should be performed on each CPU. Add comments about this. Also, add a guard for p4tcc's identify method being called more than once.
Diffstat (limited to 'sys/i386/cpufreq/est.c')
-rw-r--r--sys/i386/cpufreq/est.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/cpufreq/est.c b/sys/i386/cpufreq/est.c
index 53b1cd7..6239332 100644
--- a/sys/i386/cpufreq/est.c
+++ b/sys/i386/cpufreq/est.c
@@ -582,6 +582,10 @@ est_identify(driver_t *driver, device_t parent)
if ((p[2] & 0x80) == 0)
return;
+ /*
+ * We add a child for each CPU since settings must be performed
+ * on each CPU in the SMP case.
+ */
if (BUS_ADD_CHILD(parent, 0, "est", -1) == NULL)
device_printf(parent, "add est child failed\n");
}
OpenPOWER on IntegriCloud