cpuidle.h (976e3645923bdd2fe7893aae33fd7a21098bfb28) cpuidle.h (bf6479dbe743ca343fa122aaffbe9dcb1de80a51)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * cpuidle.h - The internal header file
4 */
5
6#ifndef __DRIVER_CPUIDLE_H
7#define __DRIVER_CPUIDLE_H
8

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

25/* governors */
26extern struct cpuidle_governor *cpuidle_find_governor(const char *str);
27extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
28
29/* sysfs */
30
31struct device;
32
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * cpuidle.h - The internal header file
4 */
5
6#ifndef __DRIVER_CPUIDLE_H
7#define __DRIVER_CPUIDLE_H
8

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

25/* governors */
26extern struct cpuidle_governor *cpuidle_find_governor(const char *str);
27extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
28
29/* sysfs */
30
31struct device;
32
33extern int cpuidle_add_interface(struct device *dev);
33extern int cpuidle_add_interface(void);
34extern void cpuidle_remove_interface(struct device *dev);
35extern int cpuidle_add_device_sysfs(struct cpuidle_device *device);
36extern void cpuidle_remove_device_sysfs(struct cpuidle_device *device);
37extern int cpuidle_add_sysfs(struct cpuidle_device *dev);
38extern void cpuidle_remove_sysfs(struct cpuidle_device *dev);
39
40#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
41bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state);

--- 34 unchanged lines hidden ---
34extern void cpuidle_remove_interface(struct device *dev);
35extern int cpuidle_add_device_sysfs(struct cpuidle_device *device);
36extern void cpuidle_remove_device_sysfs(struct cpuidle_device *device);
37extern int cpuidle_add_sysfs(struct cpuidle_device *dev);
38extern void cpuidle_remove_sysfs(struct cpuidle_device *dev);
39
40#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED
41bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state);

--- 34 unchanged lines hidden ---