[PATCH 2/7] perf: remove redundant pmu assignment

2014-02-10 Thread Mark Rutland
Currently perf_branch_stack_sched_in iterates over the set of pmus, checks that each pmu has a flush_branch_stack callback, then overwrites the pmu before calling the callback. This is either redundant or broken. In systems with a single hw pmu, pmu == cpuctx->ctx.pmu, and thus the assignment is

[PATCH 2/7] perf: remove redundant pmu assignment

2014-02-10 Thread Mark Rutland
Currently perf_branch_stack_sched_in iterates over the set of pmus, checks that each pmu has a flush_branch_stack callback, then overwrites the pmu before calling the callback. This is either redundant or broken. In systems with a single hw pmu, pmu == cpuctx-ctx.pmu, and thus the assignment is