perf: Round robin flexible groups of events using list_rotate_left()
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 9 Jan 2010 20:05:28 +0000 (21:05 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 16 Jan 2010 11:30:28 +0000 (12:30 +0100)
commite286417378b4f9ce6e473b556193465ab22e12ab
tree03da147ea654d6475ae3c739906c4e8f6804d0db
parent5908cdc85eb30f8d07f2cb11d4a62334d7229048
perf: Round robin flexible groups of events using list_rotate_left()

This is more proper that doing it through a list_for_each_entry()
that breaks after the first entry.

v2: Don't rotate pinned groups as its not needed to time share
them.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: 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