10 #include <linux/export.h>
12 #include <linux/slab.h>
19 #define PREFIX "ACPI: "
20 #define _COMPONENT ACPI_PROCESSOR_COMPONENT
26 "disabling mwait for CPU C-states\n", id->
ident);
33 set_no_mwait,
"Extensa 5220", {
42 u32 acpi_id,
int *apic_id)
58 int device_declaration,
u32 acpi_id,
int *apic_id)
66 if (device_declaration && (apic->
uid == acpi_id)) {
75 int device_declaration,
u32 acpi_id,
int *apic_id)
83 if (device_declaration) {
84 if ((entry->
length < 16) || (lsapic->
uid != acpi_id))
89 *apic_id = (lsapic->
id << 8) | lsapic->
eid;
93 static int map_madt_entry(
int type,
u32 acpi_id)
95 unsigned long madt_end,
entry;
110 entry = (
unsigned long)madt;
111 madt_end = entry + madt->
header.length;
120 if (map_lapic_id(header, acpi_id, &apic_id))
123 if (map_x2apic_id(header, type, acpi_id, &apic_id))
126 if (map_lsapic_id(header, type, acpi_id, &apic_id))
155 map_lapic_id(header, acpi_id, &apic_id);
157 map_lsapic_id(header, type, acpi_id, &apic_id);
173 apic_id = map_mat_entry(handle, type, acpi_id);
175 apic_id = map_madt_entry(type, acpi_id);
223 unsigned long long tmp;
236 acpi_id =
object.processor.proc_id;
266 arch_acpi_set_pdc_bits(buf);
297 acpi_set_pdc_bits(buf);
335 "Could not evaluate _PDC, using legacy perf. control.\n"));
344 if (arch_has_acpi_pdc() ==
false)
347 obj_list = acpi_processor_alloc_pdc();
351 acpi_processor_eval_pdc(handle, obj_list);
361 if (processor_physically_present(handle) ==
false)