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

Commit eb228b5f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: Define dummy scheduler freq input functions"

parents b28ea6e1 f72e392f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -1720,9 +1720,21 @@ extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut,

extern int task_free_register(struct notifier_block *n);
extern int task_free_unregister(struct notifier_block *n);
#ifdef CONFIG_SCHED_FREQ_INPUT
extern int sched_set_window(u64 window_start, unsigned int window_size);
extern unsigned long sched_get_busy(int cpu);
extern void sched_set_io_is_busy(int val);
#else
static inline int sched_set_window(u64 window_start, unsigned int window_size)
{
	return -EINVAL;
}
static inline unsigned long sched_get_busy(int cpu)
{
	return 0;
}
static inline void sched_set_io_is_busy(int val) {};
#endif

/*
 * Per process flags