diff options
Diffstat (limited to 'include/acpi/platform')
-rw-r--r-- | include/acpi/platform/acenv.h | 19 | ||||
-rw-r--r-- | include/acpi/platform/aclinux.h | 11 |
2 files changed, 22 insertions, 8 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h index adf969efa510..aa63202e8d5d 100644 --- a/include/acpi/platform/acenv.h +++ b/include/acpi/platform/acenv.h | |||
@@ -49,35 +49,38 @@ | |||
49 | * Configuration for ACPI tools and utilities | 49 | * Configuration for ACPI tools and utilities |
50 | */ | 50 | */ |
51 | 51 | ||
52 | #ifdef _ACPI_DUMP_APP | 52 | #ifdef ACPI_LIBRARY |
53 | #define ACPI_USE_LOCAL_CACHE | ||
54 | #endif | ||
55 | |||
56 | #ifdef ACPI_DUMP_APP | ||
53 | #ifndef MSDOS | 57 | #ifndef MSDOS |
54 | #define ACPI_DEBUG_OUTPUT | 58 | #define ACPI_DEBUG_OUTPUT |
55 | #endif | 59 | #endif |
56 | #define ACPI_APPLICATION | 60 | #define ACPI_APPLICATION |
57 | #define ACPI_DISASSEMBLER | 61 | #define ACPI_DISASSEMBLER |
58 | #define ACPI_NO_METHOD_EXECUTION | 62 | #define ACPI_NO_METHOD_EXECUTION |
59 | #define ACPI_USE_SYSTEM_CLIBRARY | ||
60 | #define ACPI_ENABLE_OBJECT_CACHE | ||
61 | #endif | 63 | #endif |
62 | 64 | ||
63 | #ifdef _ACPI_EXEC_APP | 65 | #ifdef ACPI_EXEC_APP |
64 | #undef DEBUGGER_THREADING | 66 | #undef DEBUGGER_THREADING |
65 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED | 67 | #define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED |
66 | #define ACPI_DEBUG_OUTPUT | 68 | #define ACPI_DEBUG_OUTPUT |
67 | #define ACPI_APPLICATION | 69 | #define ACPI_APPLICATION |
68 | #define ACPI_DEBUGGER | 70 | #define ACPI_DEBUGGER |
69 | #define ACPI_DISASSEMBLER | 71 | #define ACPI_DISASSEMBLER |
70 | #define ACPI_USE_SYSTEM_CLIBRARY | ||
71 | #define ACPI_ENABLE_OBJECT_CACHE | ||
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #ifdef _ACPI_ASL_COMPILER | 74 | #ifdef ACPI_ASL_COMPILER |
75 | #define ACPI_DEBUG_OUTPUT | 75 | #define ACPI_DEBUG_OUTPUT |
76 | #define ACPI_APPLICATION | 76 | #define ACPI_APPLICATION |
77 | #define ACPI_DISASSEMBLER | 77 | #define ACPI_DISASSEMBLER |
78 | #define ACPI_CONSTANT_EVAL_ONLY | 78 | #define ACPI_CONSTANT_EVAL_ONLY |
79 | #endif | ||
80 | |||
81 | #ifdef ACPI_APPLICATION | ||
79 | #define ACPI_USE_SYSTEM_CLIBRARY | 82 | #define ACPI_USE_SYSTEM_CLIBRARY |
80 | #define ACPI_ENABLE_OBJECT_CACHE | 83 | #define ACPI_USE_LOCAL_CACHE |
81 | #endif | 84 | #endif |
82 | 85 | ||
83 | /* | 86 | /* |
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index a3de0db85694..4fbc0fd52a27 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -62,6 +62,17 @@ | |||
62 | 62 | ||
63 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG | 63 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG |
64 | 64 | ||
65 | /* Type(s) for the OSL */ | ||
66 | |||
67 | #ifdef ACPI_USE_LOCAL_CACHE | ||
68 | #define acpi_cache_t struct acpi_memory_list | ||
69 | #else | ||
70 | #include <linux/slab.h> | ||
71 | #define acpi_cache_t kmem_cache_t | ||
72 | #endif | ||
73 | |||
74 | |||
75 | |||
65 | #else /* !__KERNEL__ */ | 76 | #else /* !__KERNEL__ */ |
66 | 77 | ||
67 | #include <stdarg.h> | 78 | #include <stdarg.h> |