diff options
| author | Srivatsa Vaddagiri <vatsa@codeaurora.org> | 2014-06-10 16:58:07 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 19:59:40 -0700 |
| commit | 3f2beb24f2b4029af69179354505c07b48c28779 (patch) | |
| tree | 26a83a755bcad3ce5333689df8806e5068c403ec /include/linux | |
| parent | 05312c24149b9b910e87d047f5a88a98d35a7cb6 (diff) | |
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 <vatsa@codeaurora.org>
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
[joonwoop@codeaurora.org: fixed trivial merge 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 | 2 |
1 files changed, 1 insertions, 1 deletions
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); /* |
