ACPI: processor: factor out common _PDC settings
[firewire-audio.git] / arch / ia64 / kernel / acpi-processor.c
blobebe23f58bd6ed49474331a82ac1d2797f3a75da4
1 /*
2 * arch/ia64/kernel/acpi-processor.c
4 * Copyright (C) 2005 Intel Corporation
5 * Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
6 * - Added _PDC for platforms with Intel CPUs
7 */
9 #include <linux/kernel.h>
10 #include <linux/module.h>
11 #include <linux/init.h>
12 #include <linux/acpi.h>
14 #include <acpi/processor.h>
15 #include <asm/acpi.h>
17 static void init_intel_pdc(struct acpi_processor *pr)
19 u32 *buf = (u32 *)pr->pdc->pointer->buffer.pointer;
21 buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP;
23 return;
26 /* Initialize _PDC data based on the CPU vendor */
27 void arch_acpi_processor_init_pdc(struct acpi_processor *pr)
29 init_intel_pdc(pr);
30 return;
33 EXPORT_SYMBOL(arch_acpi_processor_init_pdc);
35 void arch_acpi_processor_cleanup_pdc(struct acpi_processor *pr)
37 if (pr->pdc) {
38 kfree(pr->pdc->pointer->buffer.pointer);
39 kfree(pr->pdc->pointer);
40 kfree(pr->pdc);
41 pr->pdc = NULL;
45 EXPORT_SYMBOL(arch_acpi_processor_cleanup_pdc);