diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-24 16:00:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-24 16:00:02 -0500 |
commit | 71492fd1bdd4734d8efd20fe00ebf31027d86d3c (patch) | |
tree | d98ce4131c47f0027dded482d25528b9a57f44ac /drivers/acpi/processor_core.c | |
parent | 45e62974fb110da926e2a6c5b357c15639bdc233 (diff) | |
parent | fcb11235d3910c39afece52f6e106a9ca565d34b (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (34 commits)
classmate-laptop: add support for Classmate PC ACPI devices
hp-wmi: Fix two memleaks
acer-wmi, msi-wmi: Remove needless DMI MODULE_ALIAS
dell-wmi: do not keep driver loaded on unsupported boxes
wmi: Free the allocated acpi objects through wmi_get_event_data
drivers/platform/x86/acerhdf.c: check BIOS information whether it begins with string of table
acerhdf: add new BIOS versions
acerhdf: limit modalias matching to supported
toshiba_acpi: convert to seq_file
asus_acpi: convert to seq_file
ACPI: do not select ACPI_DOCK from ATA_ACPI
sony-laptop: enumerate rfkill devices using SN06
sony-laptop: rfkill support for newer models
ACPI: fix OSC regression that caused aer and pciehp not to load
MAINTAINERS: add maintainer for msi-wmi driver
fujitu-laptop: fix tests of acpi_evaluate_integer() return value
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c: avoid cross-CPU interrupts by using smp_call_function_any()
ACPI: processor: remove _PDC object list from struct acpi_processor
ACPI: processor: change acpi_processor_set_pdc() interface
ACPI: processor: open code acpi_processor_cleanup_pdc
...
Diffstat (limited to 'drivers/acpi/processor_core.c')
-rw-r--r-- | drivers/acpi/processor_core.c | 71 |
1 files changed, 1 insertions, 70 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 41731236f9a..9863c98c81b 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -124,29 +124,6 @@ static const struct file_operations acpi_processor_info_fops = { | |||
124 | 124 | ||
125 | DEFINE_PER_CPU(struct acpi_processor *, processors); | 125 | DEFINE_PER_CPU(struct acpi_processor *, processors); |
126 | struct acpi_processor_errata errata __read_mostly; | 126 | struct acpi_processor_errata errata __read_mostly; |
127 | static int set_no_mwait(const struct dmi_system_id *id) | ||
128 | { | ||
129 | printk(KERN_NOTICE PREFIX "%s detected - " | ||
130 | "disabling mwait for CPU C-states\n", id->ident); | ||
131 | idle_nomwait = 1; | ||
132 | return 0; | ||
133 | } | ||
134 | |||
135 | static struct dmi_system_id __cpuinitdata processor_idle_dmi_table[] = { | ||
136 | { | ||
137 | set_no_mwait, "IFL91 board", { | ||
138 | DMI_MATCH(DMI_BIOS_VENDOR, "COMPAL"), | ||
139 | DMI_MATCH(DMI_SYS_VENDOR, "ZEPTO"), | ||
140 | DMI_MATCH(DMI_PRODUCT_VERSION, "3215W"), | ||
141 | DMI_MATCH(DMI_BOARD_NAME, "IFL91") }, NULL}, | ||
142 | { | ||
143 | set_no_mwait, "Extensa 5220", { | ||
144 | DMI_MATCH(DMI_BIOS_VENDOR, "Phoenix Technologies LTD"), | ||
145 | DMI_MATCH(DMI_SYS_VENDOR, "Acer"), | ||
146 | DMI_MATCH(DMI_PRODUCT_VERSION, "0100"), | ||
147 | DMI_MATCH(DMI_BOARD_NAME, "Columbia") }, NULL}, | ||
148 | {}, | ||
149 | }; | ||
150 | 127 | ||
151 | /* -------------------------------------------------------------------------- | 128 | /* -------------------------------------------------------------------------- |
152 | Errata Handling | 129 | Errata Handling |
@@ -277,45 +254,6 @@ static int acpi_processor_errata(struct acpi_processor *pr) | |||
277 | } | 254 | } |
278 | 255 | ||
279 | /* -------------------------------------------------------------------------- | 256 | /* -------------------------------------------------------------------------- |
280 | Common ACPI processor functions | ||
281 | -------------------------------------------------------------------------- */ | ||
282 | |||
283 | /* | ||
284 | * _PDC is required for a BIOS-OS handshake for most of the newer | ||
285 | * ACPI processor features. | ||
286 | */ | ||
287 | static int acpi_processor_set_pdc(struct acpi_processor *pr) | ||
288 | { | ||
289 | struct acpi_object_list *pdc_in = pr->pdc; | ||
290 | acpi_status status = AE_OK; | ||
291 | |||
292 | |||
293 | if (!pdc_in) | ||
294 | return status; | ||
295 | if (idle_nomwait) { | ||
296 | /* | ||
297 | * If mwait is disabled for CPU C-states, the C2C3_FFH access | ||
298 | * mode will be disabled in the parameter of _PDC object. | ||
299 | * Of course C1_FFH access mode will also be disabled. | ||
300 | */ | ||
301 | union acpi_object *obj; | ||
302 | u32 *buffer = NULL; | ||
303 | |||
304 | obj = pdc_in->pointer; | ||
305 | buffer = (u32 *)(obj->buffer.pointer); | ||
306 | buffer[2] &= ~(ACPI_PDC_C_C2C3_FFH | ACPI_PDC_C_C1_FFH); | ||
307 | |||
308 | } | ||
309 | status = acpi_evaluate_object(pr->handle, "_PDC", pdc_in, NULL); | ||
310 | |||
311 | if (ACPI_FAILURE(status)) | ||
312 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | ||
313 | "Could not evaluate _PDC, using legacy perf. control...\n")); | ||
314 | |||
315 | return status; | ||
316 | } | ||
317 | |||
318 | /* -------------------------------------------------------------------------- | ||
319 | FS Interface (/proc) | 257 | FS Interface (/proc) |
320 | -------------------------------------------------------------------------- */ | 258 | -------------------------------------------------------------------------- */ |
321 | 259 | ||
@@ -825,9 +763,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device) | |||
825 | } | 763 | } |
826 | 764 | ||
827 | /* _PDC call should be done before doing anything else (if reqd.). */ | 765 | /* _PDC call should be done before doing anything else (if reqd.). */ |
828 | arch_acpi_processor_init_pdc(pr); | 766 | acpi_processor_set_pdc(pr->handle); |
829 | acpi_processor_set_pdc(pr); | ||
830 | arch_acpi_processor_cleanup_pdc(pr); | ||
831 | 767 | ||
832 | #ifdef CONFIG_CPU_FREQ | 768 | #ifdef CONFIG_CPU_FREQ |
833 | acpi_processor_ppc_has_changed(pr, 0); | 769 | acpi_processor_ppc_has_changed(pr, 0); |
@@ -1145,11 +1081,6 @@ static int __init acpi_processor_init(void) | |||
1145 | if (!acpi_processor_dir) | 1081 | if (!acpi_processor_dir) |
1146 | return -ENOMEM; | 1082 | return -ENOMEM; |
1147 | #endif | 1083 | #endif |
1148 | /* | ||
1149 | * Check whether the system is DMI table. If yes, OSPM | ||
1150 | * should not use mwait for CPU-states. | ||
1151 | */ | ||
1152 | dmi_check_system(processor_idle_dmi_table); | ||
1153 | result = cpuidle_register_driver(&acpi_idle_driver); | 1084 | result = cpuidle_register_driver(&acpi_idle_driver); |
1154 | if (result < 0) | 1085 | if (result < 0) |
1155 | goto out_proc; | 1086 | goto out_proc; |