summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIonut Nechita (Sunlight Linux) <sunlightlinux@gmail.com>2026-01-28 09:45:43 +0200
committerThomas Gleixner <tglx@kernel.org>2026-01-30 22:13:13 +0100
commit56534673cea7f00d96a64deb58057298fe9f192e (patch)
tree7daba94d20a9d26ceb7166944a30dce49673a718 /include/linux
parent3db5306b0bd562ac0fe7eddad26c60ebb6f5fdd4 (diff)
tick/nohz: Optimize check_tick_dependency() with early return
There is no point in iterating through individual tick dependency bits when the tick_stop tracepoint is disabled, which is the common case. When the trace point is disabled, return immediately based on the atomic value being zero or non-zero, skipping the per-bit evaluation. This optimization improves the hot path performance of tick dependency checks across all contexts (idle and non-idle), not just nohz_full CPUs. Suggested-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ionut Nechita (Sunlight Linux) <sunlightlinux@gmail.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260128074558.15433-3-sunlightlinux@gmail.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions