@@ -53,6 +53,9 @@ config ACPI_SLEEP
depends on SUSPEND || HIBERNATION
default y
+config ARCH_SPECIFIC_ACPI_OSI
+ def_bool n
+
config ACPI_PROCFS_POWER
bool "Deprecated power /proc/acpi directories"
depends on PROC_FS
@@ -18,9 +18,14 @@ obj-y += acpi.o \
acpica/
# All the builtin files are in the "acpi." module_param namespace.
-acpi-y += osl.o utils.o reboot.o osi.o
+acpi-y += osl.o utils.o reboot.o
acpi-y += nvs.o
+# _OSI related files
+ifneq ($(CONFIG_ARCH_SPECIFIC_ACPI_OSI), y)
+acpi-y += osi.o
+endif
+
# Power management related files
acpi-y += wakeup.o
acpi-y += sleep.o
@@ -279,9 +279,17 @@ static inline int acpi_video_display_switch_support(void)
#endif /* defined(CONFIG_ACPI_VIDEO) || defined(CONFIG_ACPI_VIDEO_MODULE) */
extern int acpi_blacklisted(void);
+
+#ifdef CONFIG_ARCH_SPECIFIC_ACPI_OSI
+static inline void __init acpi_dmi_osi_linux(int enable,
+ const struct dmi_system_id *d) { }
+static inline void __init acpi_osi_setup(char *str) { }
+#else
extern void __init acpi_dmi_osi_linux(int enable,
const struct dmi_system_id *d);
extern void __init acpi_osi_setup(char *str);
+#endif
+
extern u32 acpi_osi_handler(acpi_string interface, u32 supported);
#ifdef CONFIG_ACPI_NUMA