ACPI: Handle CONFIG_ACPI=n better from linux/acpi.h
authorFeng Tang <feng.tang@intel.com>
Tue, 28 Jul 2009 09:41:53 +0000 (17:41 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 23:57:29 +0000 (19:57 -0400)
commite55a5999ffcf72dc4d43d73618957964cb87065a
treeda891ef97f9b51b03cd64077f79a09ea361b1599
parente5b8fc6ac158f65598f58dba2c0d52ba3b412f52
ACPI: Handle CONFIG_ACPI=n better from linux/acpi.h

linux/acpi.h is the top level header for interfacing
with the ACPI sub-system, so acpi_disabled should be
up there instead of down in asm/acpi.h -- particularly
since asm/acpi.h doesn't exist for all architectures.

Same story for acpi_table_parse(), which is a top-level
API to Linux/ACPI.

This is necessary for building some code that
used to always depend on CONFIG_ACPI=y, but will soon
also need to build with CONFIG_ACPI=n.

Signed-off-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/x86/include/asm/acpi.h
include/linux/acpi.h