powerd - Detect power state changes
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Sep 2016 23:02:07 +0000 (16:02 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 12 Sep 2016 01:11:22 +0000 (18:11 -0700)
commited33617de0eef91fd0afef6ec66fb4f030032a6a
tree5b650657ac7c42930b0f18c0bd0c72cbaeccbd3b
parent2712a92220f5d293bbeae19fc39bad0df6e1de29
powerd - Detect power state changes

* The list of available frequencies changes when the power state changes,
  detect such changes and set parameters for all cpus verses making
  incremental changes.

* Fixes issue with powerd leaving the laptop running at a lower frequency
  when the laptop is unplugged and then plugged back in.
usr.sbin/powerd/powerd.c