diff options
author | Len Brown <len.brown@intel.com> | 2007-07-22 02:28:18 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-07-22 02:28:18 -0400 |
commit | dcb76f88683618ed6ef0df66643dba1285881ee5 (patch) | |
tree | c43b6162c6d5cd7afeaa5ee44a5eed1e30b23adc /drivers/acpi/processor_core.c | |
parent | 08e31686d6d119ba26bf0690f5f872f6f5bd1a97 (diff) | |
parent | 6c5cf8aa5849819958311644ffaf8467e9fcf07e (diff) | |
download | op-kernel-dev-dcb76f88683618ed6ef0df66643dba1285881ee5.zip op-kernel-dev-dcb76f88683618ed6ef0df66643dba1285881ee5.tar.gz |
Pull throttle into release branch
Diffstat (limited to 'drivers/acpi/processor_core.c')
-rw-r--r-- | drivers/acpi/processor_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index e1ca86d..81aceb5 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c @@ -66,6 +66,7 @@ #define ACPI_PROCESSOR_FILE_LIMIT "limit" #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80 #define ACPI_PROCESSOR_NOTIFY_POWER 0x81 +#define ACPI_PROCESSOR_NOTIFY_THROTTLING 0x82 #define ACPI_PROCESSOR_LIMIT_USER 0 #define ACPI_PROCESSOR_LIMIT_THERMAL 1 @@ -84,6 +85,8 @@ static int acpi_processor_info_open_fs(struct inode *inode, struct file *file); static void acpi_processor_notify(acpi_handle handle, u32 event, void *data); static acpi_status acpi_processor_hotadd_init(acpi_handle handle, int *p_cpu); static int acpi_processor_handle_eject(struct acpi_processor *pr); +extern int acpi_processor_tstate_has_changed(struct acpi_processor *pr); + static struct acpi_driver acpi_processor_driver = { .name = "processor", @@ -696,6 +699,9 @@ static void acpi_processor_notify(acpi_handle handle, u32 event, void *data) acpi_processor_cst_has_changed(pr); acpi_bus_generate_event(device, event, 0); break; + case ACPI_PROCESSOR_NOTIFY_THROTTLING: + acpi_processor_tstate_has_changed(pr); + acpi_bus_generate_event(device, event, 0); default: ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Unsupported event [0x%x]\n", event)); |