提交 9c0a30b6 编写于 作者: A Andy Shevchenko 提交者: Ingo Molnar

ACPI/sleep: Simplify code by using the new dmi_get_bios_year() helper

...instead of open coding its functionality.

No changes in functionality.
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-acpi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20180222125923.57385-3-andriy.shevchenko@linux.intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 69c42d49
...@@ -376,12 +376,10 @@ void __init acpi_sleep_no_blacklist(void) ...@@ -376,12 +376,10 @@ void __init acpi_sleep_no_blacklist(void)
static void __init acpi_sleep_dmi_check(void) static void __init acpi_sleep_dmi_check(void)
{ {
int year;
if (ignore_blacklist) if (ignore_blacklist)
return; return;
if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year >= 2012) if (dmi_get_bios_year() >= 2012)
acpi_nvs_nosave_s3(); acpi_nvs_nosave_s3();
dmi_check_system(acpisleep_dmi_table); dmi_check_system(acpisleep_dmi_table);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册