perf_counter: Always schedule all software counters in
authorPaul Mackerras <paulus@samba.org>
Mon, 12 Jan 2009 04:11:00 +0000 (15:11 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 12 Jan 2009 04:12:50 +0000 (15:12 +1100)
commitdd0e6ba22ea21bcc2c420b385a170593c58f4c08
treea6b1b30cc7e873615d24c4eef04ef61b2ccb3ebe
parentc0d362a832ee70435fc4555a64f820893b1da0bd
perf_counter: Always schedule all software counters in

Software counters aren't subject to the limitations imposed by the
fixed number of hardware counter registers, so there is no reason not
to enable them all in __perf_counter_sched_in.  Previously we used to
break out of the loop when we got to a group that wouldn't fit on the
PMU; with this we continue through the list but only schedule in
software counters (or groups containing only software counters) from
there on.

Signed-off-by: Paul Mackerras <paulus@samba.org>
kernel/perf_counter.c