summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorjruoho <jruoho@NetBSD.org>2010-07-18 09:29:11 +0000
committerjruoho <jruoho@NetBSD.org>2010-07-18 09:29:11 +0000
commit4d861e5bb40dc92240e7740bd01b617864e104f1 (patch)
tree2e4a01aeeb7c720b4055c8b4030f127e4693b802 /sys/modules
parent3172b07cfc083ca243318981e2374167a0e030d5 (diff)
Merge a driver for ACPI CPUs with basic support for processor power states,
also known as C-states. The code is modular and provides an easy way to add the remaining functionality later (namely throttling and P-states). Remarks: 1. Commented out in the GENERICs; more testing exposure is needed. 2. The C3-state is disabled for the time being because it turns off timers, among them the local APIC timer. This may not be universally true on all x86 processors; define ACPICPU_ENABLE_C3 to test. 3. The algorithm used to choose a power state may need tuning. When evaluating the appropriate state, the implementation uses the previous sleep time as an indicator. Additional hints would include for example the system load. Also bus master activity is evaluated when choosing a state. The usb(4) stack is notorious for such activity even when unused. Typically it must be disabled in order to reach the C3-state, but it may also prevent the use of C2. 4. While no extensive empirical measurements have been carried out, the power savings are somewhere between 1-2 W with C1 and C2, depending on the processor, firmware, and load. With C3 even up to 4 W can be saved. The less something ticks, the more power is saved. ok jmcneill@, joerg@, and discussed with various people.
Diffstat (limited to 'sys/modules')
0 files changed, 0 insertions, 0 deletions