From 211001b963eba0d1e79826b00fc51316220653e6 Mon Sep 17 00:00:00 2001 From: Len Brown Date: Wed, 1 Dec 2004 08:25:01 -0500 Subject: [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 acpi_set_cstate_limit(2); Suggested-by: Pavel Machek Signed-off-by: Len Brown --- include/linux/acpi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux') 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 -- cgit v1.2.3