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: Junjie Wu <junjiew@codeaurora.org> Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org> [joonwoop@codeaurora.org: fixed minor conflict in include/linux/sched.h] Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
This commit is contained in:
parent
a6f510aa0a
commit
a37679f0c3
1 changed files with 12 additions and 0 deletions
|
@ -2109,9 +2109,21 @@ static inline cputime_t task_gtime(struct task_struct *t)
|
|||
extern void task_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
|
||||
extern void thread_group_cputime_adjusted(struct task_struct *p, cputime_t *ut, cputime_t *st);
|
||||
|
||||
#if defined(CONFIG_SCHED_FREQ_INPUT) || defined(CONFIG_SCHED_HMP)
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue