hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/include/soc/rockchip/rockchip_system_monitor.h
....@@ -103,11 +103,13 @@
103103 bool is_high_temp;
104104 bool is_low_temp_enabled;
105105 bool is_status_freq_fixed;
106
+ bool boosted;
106107 };
107108
108109 struct monitor_dev_profile {
109110 enum monitor_dev_type type;
110111 void *data;
112
+ int (*low_temp_adjust_volt)(struct monitor_dev_info *info);
111113 int (*low_temp_adjust)(struct monitor_dev_info *info, bool is_low);
112114 int (*high_temp_adjust)(struct monitor_dev_info *info, bool is_low);
113115 struct cpumask allowed_cpus;
....@@ -132,6 +134,8 @@
132134 int temp, unsigned long *state);
133135 int rockchip_monitor_opp_set_rate(struct monitor_dev_info *info,
134136 unsigned long target_freq);
137
+void rockchip_monitor_set_boosted(void);
138
+void rockchip_monitor_clear_boosted(void);
135139 #else
136140 static inline struct monitor_dev_info *
137141 rockchip_system_monitor_register(struct device *dev,
....@@ -188,6 +192,8 @@
188192 {
189193 return 0;
190194 }
195
+static inline void rockchip_monitor_set_boosted(void) {};
196
+static inline void rockchip_monitor_set_boosted(void) {};
191197 #endif /* CONFIG_ROCKCHIP_SYSTEM_MONITOR */
192198
193199 #endif