Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 542d59dd authored by Josh Choo's avatar Josh Choo Committed by Andrea
Browse files

sched: Add stub functions for wake_up_idle API

Needed to load the stock qcacld kernel module.
parent 06bd37af
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2508,6 +2508,9 @@ static inline bool cpupri_check_rt(void)
}
#endif

extern u32 sched_get_wake_up_idle(struct task_struct *p);
extern int sched_set_wake_up_idle(struct task_struct *p, int wake_up_idle);

#ifdef CONFIG_NO_HZ_COMMON
void calc_load_enter_idle(void);
void calc_load_exit_idle(void);
+12 −0
Original line number Diff line number Diff line
@@ -2661,6 +2661,18 @@ static inline void update_cfs_shares(struct sched_entity *se)
}
#endif /* CONFIG_FAIR_GROUP_SCHED */

u32 sched_get_wake_up_idle(struct task_struct *p)
{
	return 0;
}
EXPORT_SYMBOL(sched_get_wake_up_idle);

int sched_set_wake_up_idle(struct task_struct *p, int wake_up_idle)
{
	return 0;
}
EXPORT_SYMBOL(sched_set_wake_up_idle);

#ifdef CONFIG_SMP
static const u32 runnable_avg_yN_inv[] = {
	0xffffffff, 0xfa83b2da, 0xf5257d14, 0xefe4b99a, 0xeac0c6e6, 0xe5b906e6,