cpuidle-arm.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) cpuidle-arm.c (69e26b4f43ed396868c6e7645f9eb06c3a0d2fee)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ARM/ARM64 generic CPU idle driver.
4 *
5 * Copyright (C) 2014 ARM Ltd.
6 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
7 */
8

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

26 *
27 * dev: cpuidle device
28 * drv: cpuidle driver
29 * idx: state index
30 *
31 * Called from the CPUidle framework to program the device to the
32 * specified target state selected by the governor.
33 */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ARM/ARM64 generic CPU idle driver.
4 *
5 * Copyright (C) 2014 ARM Ltd.
6 * Author: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
7 */
8

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

26 *
27 * dev: cpuidle device
28 * drv: cpuidle driver
29 * idx: state index
30 *
31 * Called from the CPUidle framework to program the device to the
32 * specified target state selected by the governor.
33 */
34static int arm_enter_idle_state(struct cpuidle_device *dev,
35 struct cpuidle_driver *drv, int idx)
34static __cpuidle int arm_enter_idle_state(struct cpuidle_device *dev,
35 struct cpuidle_driver *drv, int idx)
36{
37 /*
38 * Pass idle state index to arm_cpuidle_suspend which in turn
39 * will call the CPU ops suspend protocol with idle index as a
40 * parameter.
41 */
42 return CPU_PM_CPU_IDLE_ENTER(arm_cpuidle_suspend, idx);
43}

--- 125 unchanged lines hidden ---
36{
37 /*
38 * Pass idle state index to arm_cpuidle_suspend which in turn
39 * will call the CPU ops suspend protocol with idle index as a
40 * parameter.
41 */
42 return CPU_PM_CPU_IDLE_ENTER(arm_cpuidle_suspend, idx);
43}

--- 125 unchanged lines hidden ---