summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/acpi
diff options
context:
space:
mode:
authorHanjun Guo <hanjun.guo@linaro.org>2014-02-19 00:23:57 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-19 00:56:07 +0100
commit328281b1cda4dfef5b86c255b0aba8a8a96e0dad (patch)
tree7fdc61c829c944729e3a7660051a55f3cd1c853c /arch/x86/kernel/acpi
parentdf86f5df79d8c2035a88fb985925e49475c0cdca (diff)
downloadlinux-stable-328281b1cda4dfef5b86c255b0aba8a8a96e0dad.tar.gz
linux-stable-328281b1cda4dfef5b86c255b0aba8a8a96e0dad.tar.bz2
linux-stable-328281b1cda4dfef5b86c255b0aba8a8a96e0dad.zip
ACPI: Move BAD_MADT_ENTRY() to linux/acpi.h
BAD_MADT_ENTRY() is arch independent and will be used for all architectures which parse MADT, so move it to linux/acpi.h to reduce code duplication. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/kernel/acpi')
-rw-r--r--arch/x86/kernel/acpi/boot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 1dac94265b59..123f9e37eee4 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -53,10 +53,6 @@ EXPORT_SYMBOL(acpi_disabled);
# include <asm/proto.h>
#endif /* X86 */
-#define BAD_MADT_ENTRY(entry, end) ( \
- (!entry) || (unsigned long)entry + sizeof(*entry) > end || \
- ((struct acpi_subtable_header *)entry)->length < sizeof(*entry))
-
#define PREFIX "ACPI: "
int acpi_noirq; /* skip ACPI IRQ initialization */