diff options
| author | Len Brown <len.brown@intel.com> | 2004-11-05 12:03:54 -0500 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2004-11-05 12:03:54 -0500 |
| commit | ff4889bcf708c9266778741097335fb3b63b09f3 (patch) | |
| tree | af322440be5868d1957d350413f383faa1152b48 /include | |
| parent | 8d0991adc308c2096c119bf10e50102196f1281c (diff) | |
| parent | a3e945a68f5db66f83bca634037d544c2d9e5a7e (diff) | |
Merge intel.com:/home/lenb/src/26-stable-dev
into intel.com:/home/lenb/src/26-latest-dev
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/acpi.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 6be8cf4e79bc..5960e3c49fe7 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -473,4 +473,30 @@ static inline int acpi_blacklisted(void) #endif /*!CONFIG_ACPI_INTERPRETER*/ +#define ACPI_CSTATE_LIMIT_DEFINED /* for driver builds */ +#ifdef CONFIG_ACPI + +/* + * Set highest legal C-state + * 0: C0 okay, but not C1 + * 1: C1 okay, but not C2 + * 2: C2 okay, but not C3 etc. + */ + +extern unsigned int acpi_cstate_limit; + +static inline unsigned int acpi_get_cstate_limit(void) +{ + return acpi_cstate_limit; +} +static inline void acpi_set_cstate_limit(unsigned int new_limit) +{ + acpi_cstate_limit = new_limit; + return; +} +#else +static inline unsigned int acpi_get_cstate_limit(void) { return 0; } +static inline void acpi_set_cstate_limit(unsigned int new_limit) { return; } +#endif + #endif /*_LINUX_ACPI_H*/ |
