OSDN Git Service

perf: Enable updating exclude_idle events at idle
authorPatrick Fay <pfay@codeaurora.org>
Thu, 22 Sep 2016 00:02:30 +0000 (17:02 -0700)
committerPatrick Fay <pfay@codeaurora.org>
Thu, 22 Sep 2016 23:48:21 +0000 (16:48 -0700)
commit54f6e4ae87be5bb96631066dd6502594bed22e8c
tree3d212fc411cdce55394578240dcf2feb7667823e
parent9e2d528dc47d04e98c5e6f1c4ef84fc268115d36
perf: Enable updating exclude_idle events at idle

Commit 573979dee2a7 ("perf: Add support for exclude_idle attribute")
does a register_idle_notifier call so that exclude_idle events
are updated when a CPU goes idle. This commit fixes a bug which
causes unregister_idle_notifier to be erroneously called.

Change-Id: I13dbd369c0ce137e884c156360c514df92746e39
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
arch/arm64/kernel/perf_event.c