sched/{core,fair}: trigger OPP change request on fork()
authorJuri Lelli <juri.lelli@arm.com>
Fri, 26 Jun 2015 11:14:23 +0000 (12:14 +0100)
committerPunit Agrawal <punit.agrawal@arm.com>
Mon, 21 Mar 2016 12:42:04 +0000 (12:42 +0000)
commite457ca2619941a621eabb01178ad3d69b990822d
tree4b8b4adebd6948021ebbf5833403884957467549
parent51eff27cb559af7f2b8fc4439893ad249576b5cd
sched/{core,fair}: trigger OPP change request on fork()

Patch "sched/fair: add triggers for OPP change requests" introduced OPP
change triggers for enqueue_task_fair(), but the trigger was operating only
for wakeups. Fact is that it makes sense to consider wakeup_new also (i.e.,
fork()), as we don't know anything about a newly created task and thus we
most certainly want to jump to max OPP to not harm performance too much.

However, it is not currently possible (or at least it wasn't evident to me
how to do so :/) to tell new wakeups from other (non wakeup) operations.

This patch introduces an additional flag in sched.h that is only set at
fork() time and it is then consumed in enqueue_task_fair() for our purpose.

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/core.c
kernel/sched/fair.c
kernel/sched/sched.h