powerd - Do a more sophisticated domain scan, use kern.usched_global_cpumask
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 2 Feb 2011 07:59:22 +0000 (23:59 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 2 Feb 2011 07:59:22 +0000 (23:59 -0800)
commit65db32a706a835e9c5ab6bfcda96f85ae31cdf04
tree1a75851360df9f0646e23328e829e50c9a0d8e75
parent916e604fdc710c1afaa8cb59dda03e2830b45a2c
powerd - Do a more sophisticated domain scan, use kern.usched_global_cpumask

* Do a more sophisticated domain scan, cpu domains do not necessarily start
  at 0.

* Handle the case where multiple cpus may belong to a single domain.

* Dynamically adjust kern.usched_global_cpumask to the number of cpus we
  are running at max frequency, leaving the remaining cpus set at their
  lowest frequency and left mostly idle.

* Tested on the 48-core monster and phenom x 6.
usr.sbin/powerd/powerd.c