From 3f2beb24f2b4029af69179354505c07b48c28779 Mon Sep 17 00:00:00 2001 From: Srivatsa Vaddagiri Date: Tue, 10 Jun 2014 16:58:07 -0700 Subject: sched: make sched_set_window() return failure when PELT is in use Window-based load tracking is a pre-requisite for the scheduler to feed cpu load information to the governor. When PELT is in use, return failure when governor attempts to set window-size. This will let governor fall back to other APIs for retrieving cpu load statistics. Change-Id: I0e11188594c1a54b3b7ff55447d30bfed1a01115 Signed-off-by: Srivatsa Vaddagiri Signed-off-by: Syed Rameez Mustafa [joonwoop@codeaurora.org: fixed trivial merge conflict in include/linux/sched.h.] Signed-off-by: Joonwoo Park --- include/linux/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index 266dca375d59..1fa6ff26f5f7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -2109,7 +2109,7 @@ 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); -extern void sched_set_window(u64 window_start, unsigned int window_size); +extern int sched_set_window(u64 window_start, unsigned int window_size); extern unsigned long sched_get_busy(int cpu); /* -- cgit v1.2.3