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)
commit7c8056bb366b1b2dc8e4a3cc0b876e15a8ebca2c
tree6d08ded4ba96a4c55a1b2cb0d7b6d6ab2b5c37d6
parent46ade4740bbf9bf4e804ddb2c85845cccd219f3c
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