Skip to content
Commit 9332d250 authored by David Ahern's avatar David Ahern Committed by Ingo Molnar
Browse files

perf/x86: Remove redundant calls to perf_pmu_{dis|en}able()



perf_pmu_disable() is called before pmu->add() and perf_pmu_enable() is called
afterwards. No need to call these inside of x86_pmu_add() as well.

Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1424281543-67335-1-git-send-email-dsahern@gmail.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 936c663a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment