sparc: perf: Remove redundant perf_pmu_{en|dis}able calls
authorDavid Ahern <david.ahern@oracle.com>
Thu, 19 Mar 2015 20:05:57 +0000 (16:05 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2015 01:54:49 +0000 (18:54 -0700)
commit5b0d4b5514bbcce69b516d0742f2cfc84ebd6db3
tree2bb8ddcb4b95ff266e21ca57ba3248d22a943f6c
parentb314acaccd7e0d55314d96be4a33b5f50d0b3344
sparc: perf: Remove redundant perf_pmu_{en|dis}able calls

perf_pmu_disable is called by core perf code before pmu->del and the
enable function is called by core perf code afterwards. No need to
call again within sparc_pmu_del.

Ditto for pmu->add and sparc_pmu_add.

Signed-off-by: David Ahern <david.ahern@oracle.com>
Acked-by: Bob Picco <bob.picco@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/perf_event.c