diff options
| author | Len Brown <len.brown@intel.com> | 2004-12-01 08:25:01 -0500 |
|---|---|---|
| committer | Len Brown <lenb@dhcppc3.> | 2004-12-01 08:25:01 -0500 |
| commit | 211001b963eba0d1e79826b00fc51316220653e6 (patch) | |
| tree | 61de4cbf914b71a4a614e608ade33e1eb999833e /include | |
| parent | 0e3448746fcaaaeb8ea5061efa89d750d7403fbb (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')
| -rw-r--r-- | include/acpi/processor.h | 6 | ||||
| -rw-r--r-- | include/linux/acpi.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index dab7521d8ac6..700cafd2b5cc 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h @@ -17,7 +17,7 @@ struct acpi_processor_cx_policy { u32 count; - int state; + u32 state; struct { u32 time; u32 ticks; @@ -38,8 +38,8 @@ struct acpi_processor_cx { }; struct acpi_processor_power { - int state; - int default_state; + u32 state; + u32 default_state; u32 bm_activity; struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER]; }; 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 |
