summaryrefslogtreecommitdiff
path: root/include/linux/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpu.h')
-rw-r--r--include/linux/cpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index 7c73824def83..8281cd72b349 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -27,6 +27,19 @@ struct cpu {
struct device dev;
};
+struct cpu_pstate_pwr {
+ unsigned int freq;
+ uint32_t power;
+};
+
+struct cpu_pwr_stats {
+ int cpu;
+ long temp;
+ struct cpu_pstate_pwr *ptable;
+ bool throttling;
+ int len;
+};
+
extern int register_cpu(struct cpu *cpu, int num);
extern struct device *get_cpu_device(unsigned cpu);
extern bool cpu_is_hotpluggable(unsigned cpu);
@@ -265,6 +278,9 @@ static inline int disable_nonboot_cpus(void) { return 0; }
static inline void enable_nonboot_cpus(void) {}
#endif /* !CONFIG_PM_SLEEP_SMP */
+struct cpu_pwr_stats *get_cpu_pwr_stats(void);
+void trigger_cpu_pwr_stats_calc(void);
+
enum cpuhp_state {
CPUHP_OFFLINE,
CPUHP_ONLINE,