aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2014-07-16 04:58:08 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-07-22 19:10:44 -0400
commitd334c823b27401721591e0f1220050a41af08165 (patch)
treee1e85c8ee39d459c457b63cc040276f4d1376a9e
parentdaba25d6e09e923ca4458211ca086eeb8bef8b5a (diff)
ACPICA: Linux: Add support to exclude <asm/acenv.h> inclusion.
The forthcoming patch will make <acpi/acpi.h> to be visible to all kernel source code. Thus for the architectures that do not support ACPI and haven't implemented <asm/acenv.h>, we need to make it excluded. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--arch/ia64/include/asm/acenv.h4
-rw-r--r--arch/x86/include/asm/acenv.h4
-rw-r--r--include/acpi/platform/aclinux.h2
3 files changed, 2 insertions, 8 deletions
diff --git a/arch/ia64/include/asm/acenv.h b/arch/ia64/include/asm/acenv.h
index 3f9eaeec9873..35ff13afbf34 100644
--- a/arch/ia64/include/asm/acenv.h
+++ b/arch/ia64/include/asm/acenv.h
@@ -19,8 +19,6 @@
19 19
20/* Asm macros */ 20/* Asm macros */
21 21
22#ifdef CONFIG_ACPI
23
24static inline int 22static inline int
25ia64_acpi_acquire_global_lock(unsigned int *lock) 23ia64_acpi_acquire_global_lock(unsigned int *lock)
26{ 24{
@@ -51,6 +49,4 @@ ia64_acpi_release_global_lock(unsigned int *lock)
51#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \ 49#define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
52 ((Acq) = ia64_acpi_release_global_lock(&facs->global_lock)) 50 ((Acq) = ia64_acpi_release_global_lock(&facs->global_lock))
53 51
54#endif
55
56#endif /* _ASM_IA64_ACENV_H */ 52#endif /* _ASM_IA64_ACENV_H */
diff --git a/arch/x86/include/asm/acenv.h b/arch/x86/include/asm/acenv.h
index 66873297e9f5..1b010a859b8b 100644
--- a/arch/x86/include/asm/acenv.h
+++ b/arch/x86/include/asm/acenv.h
@@ -18,8 +18,6 @@
18 18
19#define ACPI_FLUSH_CPU_CACHE() wbinvd() 19#define ACPI_FLUSH_CPU_CACHE() wbinvd()
20 20
21#ifdef CONFIG_ACPI
22
23int __acpi_acquire_global_lock(unsigned int *lock); 21int __acpi_acquire_global_lock(unsigned int *lock);
24int __acpi_release_global_lock(unsigned int *lock); 22int __acpi_release_global_lock(unsigned int *lock);
25 23
@@ -44,6 +42,4 @@ int __acpi_release_global_lock(unsigned int *lock);
44 : "=r"(n_hi), "=r"(n_lo) \ 42 : "=r"(n_hi), "=r"(n_lo) \
45 : "0"(n_hi), "1"(n_lo)) 43 : "0"(n_hi), "1"(n_lo))
46 44
47#endif
48
49#endif /* _ASM_X86_ACENV_H */ 45#endif /* _ASM_X86_ACENV_H */
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index cd1f052d55bb..dfba35476b8a 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -70,7 +70,9 @@
70#ifdef EXPORT_ACPI_INTERFACES 70#ifdef EXPORT_ACPI_INTERFACES
71#include <linux/export.h> 71#include <linux/export.h>
72#endif 72#endif
73#ifdef CONFIG_ACPI
73#include <asm/acenv.h> 74#include <asm/acenv.h>
75#endif
74 76
75#ifndef CONFIG_ACPI 77#ifndef CONFIG_ACPI
76 78