ACPI / osi: Collect _OSI handling into one single file
authorLv Zheng <lv.zheng@intel.com>
Tue, 3 May 2016 08:49:01 +0000 (16:49 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 May 2016 22:13:53 +0000 (00:13 +0200)
commite5f660ebef68e3ed1a988ad06ba23562153cee5c
tree0209aa2078743b40d9d4819c51dae3de9c450d43
parentd5a91d74c6d7da2cebadbb9f2d03e56f84d7be62
ACPI / osi: Collect _OSI handling into one single file

_OSI handling code grows giant and it's time to move them into one file.

This patch collects all _OSI handling code into one single file.
So that we only have the following functions to be used externally:

 early_acpi_osi_init(): Used by DMI detections;
 acpi_osi_init(): Used to initialize OSI command line settings and install
                  Linux specific _OSI handler;
 acpi_osi_setup(): The API that should be used by the external quirks.
 acpi_osi_is_win8(): The API is used by the external drivers to determine
                     if BIOS supports Win8.

CONFIG_DMI is not useful as stub dmi_check_system() can make everything
stub because of strip.

No functional changes.

Tested-by: Lukas Wunner <lukas@wunner.de>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Makefile
drivers/acpi/blacklist.c
drivers/acpi/internal.h
drivers/acpi/osi.c [new file with mode: 0644]
drivers/acpi/osl.c
include/linux/acpi.h