perf: Better order flexible and pinned scheduling
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 17 Jan 2010 11:56:05 +0000 (12:56 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sun, 17 Jan 2010 12:11:05 +0000 (13:11 +0100)
commit329c0e012b99fa2325a0be205c052e4aba690f16
tree07a0ae5bf264c622525d315d87b95ad5f6a22044
parent7defb0f879bbcfe29e3c6f29d685d4f29b7a0700
perf: Better order flexible and pinned scheduling

When a task gets scheduled in. We don't touch the cpu bound events
so the priority order becomes:

cpu pinned, cpu flexible, task pinned, task flexible.

So schedule out cpu flexibles when a new task context gets in
and correctly order the groups to schedule in:

task pinned, cpu flexible, task flexible.

Cpu pinned groups don't need to be touched at this time.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
kernel/perf_event.c