diff options
Diffstat (limited to 'drivers/acpi/processor_core.c')
-rw-r--r-- | drivers/acpi/processor_core.c | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 41731236f9a..a19a4ff962e 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); | ||
829 | acpi_processor_set_pdc(pr); | 766 | 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; |