sched/fair: add triggers for OPP change requests
authorJuri Lelli <juri.lelli@arm.com>
Wed, 19 Aug 2015 18:47:12 +0000 (19:47 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:28:22 +0000 (14:58 +0530)
commitd2bf66aac444a8d0ea95e5ff17a0e8563766c594
treed0b6a9d166ea0ebfbafb91beafec6ad5293426e3
parent5c905a0861295cb172b8b7c9138ed595e23a116f
sched/fair: add triggers for OPP change requests

Each time a task is {en,de}queued we might need to adapt the current
frequency to the new usage. Add triggers on {en,de}queue_task_fair() for
this purpose.  Only trigger a freq request if we are effectively waking up
or going to sleep.  Filter out load balancing related calls to reduce the
number of triggers.

[smuckle@linaro.org: resolve merge conflicts, define task_new,
 use renamed static key sched_freq]

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Signed-off-by: Steve Muckle <smuckle@linaro.org>
kernel/sched/fair.c