summaryrefslogtreecommitdiff
path: root/include/linux/cpuidle.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2018-05-28 16:40:11 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2018-06-18 18:52:12 +0200
commit88fc4fb670cee7cab0edc1e6978b04eb663336c6 (patch)
treeef0557a55a7b7e9c43ca78c4b7769dc1ebb53a87 /include/linux/cpuidle.h
parent9175aff5c459656eb6e1cbef09033d1318dc4363 (diff)
This gives debugfs information for cpuidle Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'include/linux/cpuidle.h')
-rw-r--r--include/linux/cpuidle.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 113a14833ad3..fd302d79847b 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -72,6 +72,7 @@ struct cpuidle_state {
struct cpuidle_device_kobj;
struct cpuidle_state_kobj;
struct cpuidle_driver_kobj;
+struct cpuidle_debugfs_stats;
struct cpuidle_device {
unsigned int registered:1;
@@ -90,6 +91,10 @@ struct cpuidle_device {
cpumask_t coupled_cpus;
struct cpuidle_coupled *coupled;
#endif
+#ifdef CONFIG_CPU_IDLE_DEBUGFS
+ struct dentry *debug;
+ struct cpuidle_debugfs_stats *stats;
+#endif
};
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);