firmware/br-ext-chip-allwinner/board/v83x/kernel/patches/00000-include_linux_cpuidle...

24 lines
954 B
Diff

diff -drupN a/include/linux/cpuidle.h b/include/linux/cpuidle.h
--- a/include/linux/cpuidle.h 2018-08-06 17:23:04.000000000 +0300
+++ b/include/linux/cpuidle.h 2022-06-12 05:28:14.000000000 +0300
@@ -151,6 +151,10 @@ extern int cpuidle_enable_device(struct
extern void cpuidle_disable_device(struct cpuidle_device *dev);
extern int cpuidle_play_dead(void);
+#ifdef CONFIG_DISP2_SUNXI
+extern bool disp_is_enable(void);
+#endif
+
extern struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev);
static inline struct cpuidle_device *cpuidle_get_device(void)
{return __this_cpu_read(cpuidle_devices); }
@@ -207,7 +211,7 @@ static inline int cpuidle_enter_freeze(s
#endif
/* kernel/sched/idle.c */
-extern void sched_idle_set_state(struct cpuidle_state *idle_state);
+extern void sched_idle_set_state(struct cpuidle_state *idle_state, int index);
extern void default_idle_call(void);
#ifdef CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED