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

Commit f72e392f authored by Junjie Wu's avatar Junjie Wu
Browse files

sched: Define dummy scheduler freq input functions



Define dummy scheduler freq input functions when
CONFIG_SCHED_FREQ_INPUT is not selected.

Change-Id: Id041cbf157cf9aba86601bf95e1068be206775f0
Signed-off-by: default avatarJunjie Wu <junjiew@codeaurora.org>
parent b04e1c1a
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