This source file includes following definitions.
- cpu_pm_register_notifier
- cpu_pm_unregister_notifier
- cpu_pm_enter
- cpu_pm_exit
- cpu_cluster_pm_enter
- cpu_cluster_pm_exit
1
2
3
4
5
6
7
8
9 #ifndef _LINUX_CPU_PM_H
10 #define _LINUX_CPU_PM_H
11
12 #include <linux/kernel.h>
13 #include <linux/notifier.h>
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 enum cpu_pm_event {
41
42 CPU_PM_ENTER,
43
44
45 CPU_PM_ENTER_FAILED,
46
47
48 CPU_PM_EXIT,
49
50
51 CPU_CLUSTER_PM_ENTER,
52
53
54 CPU_CLUSTER_PM_ENTER_FAILED,
55
56
57 CPU_CLUSTER_PM_EXIT,
58 };
59
60 #ifdef CONFIG_CPU_PM
61 int cpu_pm_register_notifier(struct notifier_block *nb);
62 int cpu_pm_unregister_notifier(struct notifier_block *nb);
63 int cpu_pm_enter(void);
64 int cpu_pm_exit(void);
65 int cpu_cluster_pm_enter(void);
66 int cpu_cluster_pm_exit(void);
67
68 #else
69
70 static inline int cpu_pm_register_notifier(struct notifier_block *nb)
71 {
72 return 0;
73 }
74
75 static inline int cpu_pm_unregister_notifier(struct notifier_block *nb)
76 {
77 return 0;
78 }
79
80 static inline int cpu_pm_enter(void)
81 {
82 return 0;
83 }
84
85 static inline int cpu_pm_exit(void)
86 {
87 return 0;
88 }
89
90 static inline int cpu_cluster_pm_enter(void)
91 {
92 return 0;
93 }
94
95 static inline int cpu_cluster_pm_exit(void)
96 {
97 return 0;
98 }
99 #endif
100 #endif