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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 14:00:54 +0000 (15:00 +0100)
commit5cea2eaea5fa770fd023c9c1b1e4e122d226a5d8
tree9b86c9db77133cf50bbfc2b11a853a00c07b713a
parent4b9529f3e93ca1376897357466b0a7e91e817ccf
sparc: perf: Remove redundant perf_pmu_{en|dis}able calls

[ Upstream commit 5b0d4b5514bbcce69b516d0742f2cfc84ebd6db3 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/kernel/perf_event.c