Venkatesh Pallipadi | 05131ec | 2005-10-23 16:31:00 -0400 | [diff] [blame] | 1 | /* |
Uwe Zeisberger | f30c226 | 2006-10-03 23:01:26 +0200 | [diff] [blame] | 2 | * arch/ia64/kernel/acpi-processor.c |
Venkatesh Pallipadi | 05131ec | 2005-10-23 16:31:00 -0400 | [diff] [blame] | 3 | * |
| 4 | * Copyright (C) 2005 Intel Corporation |
| 5 | * Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> |
| 6 | * - Added _PDC for platforms with Intel CPUs |
| 7 | */ |
| 8 | |
| 9 | #include <linux/kernel.h> |
| 10 | #include <linux/module.h> |
| 11 | #include <linux/init.h> |
| 12 | #include <linux/acpi.h> |
| 13 | |
| 14 | #include <acpi/processor.h> |
| 15 | #include <asm/acpi.h> |
| 16 | |
Pallipadi, Venkatesh | 7b768f0 | 2009-06-19 17:14:59 -0700 | [diff] [blame] | 17 | void arch_acpi_processor_cleanup_pdc(struct acpi_processor *pr) |
| 18 | { |
| 19 | if (pr->pdc) { |
| 20 | kfree(pr->pdc->pointer->buffer.pointer); |
| 21 | kfree(pr->pdc->pointer); |
| 22 | kfree(pr->pdc); |
| 23 | pr->pdc = NULL; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | EXPORT_SYMBOL(arch_acpi_processor_cleanup_pdc); |