]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:06:49 +0000 (15:06 +0100)
commite6f1c6bb4214265610cd351f91ba27feffa67ffa
tree432645a7025237850578c90b7d90fa9480ffb377
parent61b30f78cfbcc44800857e0da1a9d2372ffab86e
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