]> Git Repo - linux.git/commit
perf/core: Optimize event rescheduling on active contexts
authorAlexander Shishkin <[email protected]>
Thu, 19 Jan 2017 16:43:30 +0000 (18:43 +0200)
committerIngo Molnar <[email protected]>
Mon, 30 Jan 2017 11:01:15 +0000 (12:01 +0100)
commit487f05e18aa4efacee6357480f293a5afe6593b5
tree84d8d2c73e00f06739e798803195df0fb5dad6d6
parentfe45bafbd0e1b5e828aa9d44d07e569df85869a2
perf/core: Optimize event rescheduling on active contexts

When new events are added to an active context, we go and reschedule
all cpu groups and all task groups in order to preserve the priority
(cpu pinned, task pinned, cpu flexible, task flexible), but in
reality we only need to reschedule groups of the same priority as
that of the events being added, and below.

This patch changes the behavior so that only groups that need to be
rescheduled are rescheduled.

Reported-by: Adrian Hunter <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/events/core.c
This page took 0.053348 seconds and 4 git commands to generate.