]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf: Rename perf_event_context.nr_pending to nr_no_switch_fast.
authorBen Gainey <ben.gainey@arm.com>
Tue, 30 Jul 2024 08:44:14 +0000 (09:44 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Aug 2024 09:30:29 +0000 (11:30 +0200)
commit79bd233010859463e46a0a4b3926eaaba25a6110
tree111e7bea5d07d174ae48e4049fd8405623bf7252
parent52c3fb1a0f822fd64529ca64f3792095524de450
perf: Rename perf_event_context.nr_pending to nr_no_switch_fast.

nr_pending counts the number of events in the context that
either pending_sigtrap or pending_work, but it is used
to prevent taking the fast path in perf_event_context_sched_out.

Renamed to reflect what it is used for, rather than what it
counts. This change allows using the field to track other
event properties that also require skipping the fast path
without possible confusion over the name.

Signed-off-by: Ben Gainey <ben.gainey@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20240730084417.7693-2-ben.gainey@arm.com
include/linux/perf_event.h
kernel/events/core.c