sleep.c (aa10fab0f859ef86e998ee1cdaa89fc8e542e2c9) sleep.c (6381195ad7d06ef979528c7452f3ff93659f86b1)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sleep.c - ACPI sleep support.
4 *
5 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
6 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
7 * Copyright (c) 2000-2003 Patrick Mochel
8 * Copyright (c) 2003 Open Source Development Lab

--- 490 unchanged lines hidden (view full) ---

499 acpi_scan_lock_acquire();
500}
501
502/**
503 * acpi_pm_end - Finish up system PM transition.
504 */
505static void acpi_pm_end(void)
506{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sleep.c - ACPI sleep support.
4 *
5 * Copyright (c) 2005 Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
6 * Copyright (c) 2004 David Shaohua Li <shaohua.li@intel.com>
7 * Copyright (c) 2000-2003 Patrick Mochel
8 * Copyright (c) 2003 Open Source Development Lab

--- 490 unchanged lines hidden (view full) ---

499 acpi_scan_lock_acquire();
500}
501
502/**
503 * acpi_pm_end - Finish up system PM transition.
504 */
505static void acpi_pm_end(void)
506{
507 acpi_turn_off_unused_power_resources(false);
507 acpi_turn_off_unused_power_resources();
508 acpi_scan_lock_release();
509 /*
510 * This is necessary in case acpi_pm_finish() is not called during a
511 * failing transition to a sleep state.
512 */
513 acpi_target_sleep_state = ACPI_STATE_S0;
514 acpi_sleep_tts_switch(acpi_target_sleep_state);
515}

--- 557 unchanged lines hidden ---
508 acpi_scan_lock_release();
509 /*
510 * This is necessary in case acpi_pm_finish() is not called during a
511 * failing transition to a sleep state.
512 */
513 acpi_target_sleep_state = ACPI_STATE_S0;
514 acpi_sleep_tts_switch(acpi_target_sleep_state);
515}

--- 557 unchanged lines hidden ---