aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/Kconfig
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2009-07-27 18:11:02 -0400
committerLen Brown <len.brown@intel.com>2009-07-31 18:23:34 -0400
commit8e0af5141ab950b78b3ebbfaded5439dcf8b3a8d (patch)
treee5935fb5e4fe6bc03123f5734ba80ca2230f13e2 /drivers/acpi/Kconfig
parent4be3bd7849165e7efa6b0b35a23d6a3598d97465 (diff)
ACPI: create Processor Aggregator Device driver
ACPI 4.0 created the logical "processor aggregator device" as a mechinism for platforms to ask the OS to force otherwise busy processors to enter (power saving) idle. The intent is to lower power consumption to ride-out transient electrical and thermal emergencies, rather than powering off the server. On platforms that can save more power/performance via P-states, the platform will first exhaust P-states before forcing idle. However, the relative benefit of P-states vs. idle states is platform dependent, and thus this driver need not know or care about it. This driver does not use the kernel's CPU hot-plug mechanism because after the transient emergency is over, the system must be returned to its normal state, and hotplug would permanently break both cpusets and binding. So to force idle, the driver creates a power saving thread. The scheduler will migrate the thread to the preferred CPU. The thread has max priority and has SCHED_RR policy, so it can occupy one CPU. To save power, the thread will invoke the deep C-state entry instructions. To avoid starvation, the thread will sleep 5% of the time time for every second (current RT scheduler has threshold to avoid starvation, but if other CPUs are idle, the CPU can borrow CPU timer from other, which makes the mechanism not work here) Vaidyanathan Srinivasan has proposed scheduler enhancements to allow injecting idle time into the system. This driver doesn't depend on those enhancements, but could cut over to them when they are available. Peter Z. does not favor upstreaming this driver until the those scheduler enhancements are in place. However, we favor upstreaming this driver now because it is useful now, and can be enhanced over time. Signed-off-by: Shaohua Li <shaohua.li@intel.com> NACKed-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/Kconfig')
-rw-r--r--drivers/acpi/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index 7ec7d88c5999..13531ed3cbd3 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -196,6 +196,17 @@ config ACPI_HOTPLUG_CPU
196 select ACPI_CONTAINER 196 select ACPI_CONTAINER
197 default y 197 default y
198 198
199config ACPI_PROCESSOR_AGGREGATOR
200 tristate "Processor Aggregator"
201 depends on ACPI_PROCESSOR
202 depends on EXPERIMENTAL
203 help
204 ACPI 4.0 defines processor Aggregator, which enables OS to perform
205 specfic processor configuration and control that applies to all
206 processors in the platform. Currently only logical processor idling
207 is defined, which is to reduce power consumption. This driver
208 support the new device.
209
199config ACPI_THERMAL 210config ACPI_THERMAL
200 tristate "Thermal Zone" 211 tristate "Thermal Zone"
201 depends on ACPI_PROCESSOR 212 depends on ACPI_PROCESSOR