]> git.baikalelectronics.ru Git - kernel.git/commit
Powerpc/perf: Wire up PMI throttling
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Wed, 21 Nov 2018 03:56:37 +0000 (09:26 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 00:32:49 +0000 (11:32 +1100)
commit624f2744b1f27eca7f142dbb9a2bc7a0a8ee23d7
tree7c7a1dbb8c5a2cc06a764bb3caa8fadde0415a45
parent78b88a1b343555d17203aa54ddc2b8aa4a34105c
Powerpc/perf: Wire up PMI throttling

Commit 3aed6c0f48a4e ("perf: Drop sample rate when sampling is too
slow") introduced a way to throttle PMU interrupts if we're spending
too much time just processing those. Wire up powerpc PMI handler to
use this infrastructure.

We have throttling of the *rate* of interrupts, but this adds
throttling based on the *time taken* to process the interrupts.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/core-book3s.c