]> 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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:13:50 +0000 (13:13 +0200)
commit18d8d2dc16e5281a85c215e243e23698f14e880b
tree8ccafda69f5acf94d3caaf03cd5c38d31c678f1c
parent028ba5bacba6cfebc2d5dc07f50b5ed9acb6e513
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: Jiri Slaby <jslaby@suse.cz>
arch/sparc/kernel/perf_event.c