From a37679f0c3eb0723d5422a161eae8102c8bf8fa0 Mon Sep 17 00:00:00 2001 From: Junjie Wu Date: Thu, 7 Aug 2014 14:55:44 -0700 Subject: 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 Signed-off-by: Syed Rameez Mustafa [joonwoop@codeaurora.org: fixed minor conflict in include/linux/sched.h] Signed-off-by: Joonwoo Park --- include/linux/sched.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/linux') 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 -- cgit v1.2.3