summaryrefslogtreecommitdiff
path: root/include/linux/acpi.h
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2004-12-01 08:25:01 -0500
committerLen Brown <lenb@dhcppc3.>2004-12-01 08:25:01 -0500
commit211001b963eba0d1e79826b00fc51316220653e6 (patch)
tree61de4cbf914b71a4a614e608ade33e1eb999833e /include/linux/acpi.h
parent0e3448746fcaaaeb8ea5061efa89d750d7403fbb (diff)
[ACPI] update C-state limiting patch
Now "max_cstate=" instead of "acpi_cstate_limit=" Delete redundant static cstate flags .c2 and .c3 http://bugme.osdl.org/show_bug.cgi?id=3549 For static processor driver, boot cmdline: processor.max_cstate=2 For processor module, /etc/modprobe.conf: options processor max_cstate=2 or # modprobe processor max_cstate=2 From kernel or kernel module: #include <linux/acpi.h> acpi_set_cstate_limit(2); Suggested-by: Pavel Machek Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux/acpi.h')
-rw-r--r--include/linux/acpi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 5960e3c49fe7..9cd73a47fc18 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -483,15 +483,15 @@ static inline int acpi_blacklisted(void)
* 2: C2 okay, but not C3 etc.
*/
-extern unsigned int acpi_cstate_limit;
+extern unsigned int max_cstate;
static inline unsigned int acpi_get_cstate_limit(void)
{
- return acpi_cstate_limit;
+ return max_cstate;
}
static inline void acpi_set_cstate_limit(unsigned int new_limit)
{
- acpi_cstate_limit = new_limit;
+ max_cstate = new_limit;
return;
}
#else