diff options
Diffstat (limited to 'include/acpi/platform/aclinux.h')
-rw-r--r-- | include/acpi/platform/aclinux.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index a3de0db85694..c93e6562f0e1 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -62,7 +62,16 @@ | |||
62 | 62 | ||
63 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG | 63 | #define ACPI_MACHINE_WIDTH BITS_PER_LONG |
64 | 64 | ||
65 | #else /* !__KERNEL__ */ | 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 | #else /* !__KERNEL__ */ | ||
66 | 75 | ||
67 | #include <stdarg.h> | 76 | #include <stdarg.h> |
68 | #include <string.h> | 77 | #include <string.h> |
@@ -83,10 +92,10 @@ | |||
83 | 92 | ||
84 | #define __cdecl | 93 | #define __cdecl |
85 | #define ACPI_FLUSH_CPU_CACHE() | 94 | #define ACPI_FLUSH_CPU_CACHE() |
86 | #endif /* __KERNEL__ */ | 95 | #endif /* __KERNEL__ */ |
87 | 96 | ||
88 | /* Linux uses GCC */ | 97 | /* Linux uses GCC */ |
89 | 98 | ||
90 | #include "acgcc.h" | 99 | #include "acgcc.h" |
91 | 100 | ||
92 | #endif /* __ACLINUX_H__ */ | 101 | #endif /* __ACLINUX_H__ */ |