cpuidle.h (597473720f4dc69749542bfcfed4a927a43d935e) cpuidle.h (cb5d8c45ab6c3daf8269e550cfb2d5018a876fe3)
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
9/* For internal use only */
10extern char param_governor[];
11extern struct cpuidle_governor *cpuidle_curr_governor;
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
9/* For internal use only */
10extern char param_governor[];
11extern struct cpuidle_governor *cpuidle_curr_governor;
12extern struct cpuidle_governor *cpuidle_prev_governor;
12extern struct list_head cpuidle_governors;
13extern struct list_head cpuidle_detected_devices;
14extern struct mutex cpuidle_lock;
15extern spinlock_t cpuidle_driver_lock;
16extern int cpuidle_disabled(void);
17extern int cpuidle_enter_state(struct cpuidle_device *dev,
18 struct cpuidle_driver *drv, int next_state);
19
20/* idle loop */
21extern void cpuidle_install_idle_handler(void);
22extern void cpuidle_uninstall_idle_handler(void);
23
24/* governors */
13extern struct list_head cpuidle_governors;
14extern struct list_head cpuidle_detected_devices;
15extern struct mutex cpuidle_lock;
16extern spinlock_t cpuidle_driver_lock;
17extern int cpuidle_disabled(void);
18extern int cpuidle_enter_state(struct cpuidle_device *dev,
19 struct cpuidle_driver *drv, int next_state);
20
21/* idle loop */
22extern void cpuidle_install_idle_handler(void);
23extern void cpuidle_uninstall_idle_handler(void);
24
25/* governors */
26extern struct cpuidle_governor *cpuidle_find_governor(const char *str);
25extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
26
27/* sysfs */
28
29struct device;
30
31extern int cpuidle_add_interface(struct device *dev);
32extern void cpuidle_remove_interface(struct device *dev);

--- 41 unchanged lines hidden ---
27extern int cpuidle_switch_governor(struct cpuidle_governor *gov);
28
29/* sysfs */
30
31struct device;
32
33extern int cpuidle_add_interface(struct device *dev);
34extern void cpuidle_remove_interface(struct device *dev);

--- 41 unchanged lines hidden ---