]> git.baikalelectronics.ru Git - kernel.git/commit
perf core: Factor out __perf_sw_event_sched
authorNamhyung Kim <namhyung@kernel.org>
Wed, 10 Feb 2021 08:33:25 +0000 (17:33 +0900)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 16 Apr 2021 16:58:52 +0000 (18:58 +0200)
commitf284a9a7e1f148d274b65d74ed9c028999794a6c
tree6d08ded4ba96a4c55a1b2cb0d7b6d6ab2b5c37d6
parent63a15457b5bb082b45bde37137286eacf3cbc532
perf core: Factor out __perf_sw_event_sched

In some cases, we need to check more than whether the software event
is enabled.  So split the condition check and the actual event
handling.  This is a preparation for the next change.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210210083327.22726-1-namhyung@kernel.org
include/linux/perf_event.h