summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorShrikanth Hegde <sshegde@linux.ibm.com>2026-03-24 01:06:28 +0530
committerPeter Zijlstra <peterz@infradead.org>2026-03-24 10:07:05 +0100
commit0e81fe79fec5a639700f09f39c8ab680c3312ba2 (patch)
tree1be7371ae11da8fe6023f122529b672590971754 /tools/perf/scripts/python/bin/stackcollapse-record
parent76504bce4ee6b8757647e07bc1710dcac9acdc2e (diff)
sched/core: Get this cpu once in ttwu_queue_cond()
Calling smp_processor_id() on: - In CONFIG_DEBUG_PREEMPT=y, if preemption/irq is disabled, then it does not print any warning. - In CONFIG_DEBUG_PREEMPT=n, it doesn't do anything apart from getting __smp_processor_id So with both CONFIG_DEBUG_PREEMPT=y/n, in preemption disabled section it is better to cache the value. It could save a few cycles. Though tiny, repeated could add up to a small value. ttwu_queue_cond is called with interrupt disabled. So preemption is disabled. Hence cache the value once instead. Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com> Link: https://patch.msgid.link/20260323193630.640311-3-sshegde@linux.ibm.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions