ACPI / blacklist: add acpi_match_platform_list()
authorToshi Kani <toshi.kani@hpe.com>
Wed, 23 Aug 2017 22:54:43 +0000 (16:54 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 28 Aug 2017 23:42:48 +0000 (01:42 +0200)
commit5aa5911a0ed9355ebb02f83de4be9ba435a45a2c
treedf42ef212db1c6944058a5114800a7b2706a27e9
parentcc4a41fe5541a73019a864883297bd5043aa6d98
ACPI / blacklist: add acpi_match_platform_list()

ACPI OEM ID / OEM Table ID / Revision can be used to identify
a platform based on ACPI firmware info.  acpi_blacklisted(),
intel_pstate_platform_pwr_mgmt_exists(), and some other funcs,
have been using similar check to detect a list of platforms
that require special handlings.

Move the platform check in acpi_blacklisted() to a new common
utility function, acpi_match_platform_list(), so that other
drivers do not have to implement their own version.

There is no change in functionality.

Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/blacklist.c
drivers/acpi/utils.c
include/linux/acpi.h