diff options
| author | Junjie Wu <junjiew@codeaurora.org> | 2014-08-07 14:55:44 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:00:36 -0700 |
| commit | a37679f0c3eb0723d5422a161eae8102c8bf8fa0 (patch) | |
| tree | 80914ee12e6b5b76322d8a3aaaeec53ae8f48977 /include/linux | |
| parent | a6f510aa0a2332d7b909583ec2a56c226f31ff62 (diff) | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ae6fddd190f0..d3cbea6e2a5c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -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 |
