diff options
| author | Andrea Calabrese <andrea.calabrese@amarulasolutions.com> | 2026-05-20 08:28:50 +0200 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-03 21:10:08 -0700 |
| commit | b7a8d7589a632c7de115362bbec6d88b10f685f1 (patch) | |
| tree | ff9a39c836f30068412f17d32eae758399292052 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 64d9183203eebe33de6188b70a8c1e91f52885db (diff) | |
kernel: refactor: shorten has_pending_signals
In has_pending_signals there was a switch/case used for optimizations.
However, today's compilers perform loop unrolling efficiently, thus it is
not needed anymore.
Put i inside the for declaration so we do not risk its escape from the
scope. Moreover, i starts now from 0 and counts up, as it is a more usual
pattern.
Link: https://lore.kernel.org/20260520062849.183621-2-andrea.calabrese@amarulasolutions.com
Signed-off-by: Andrea Calabrese <andrea.calabrese@amarulasolutions.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Cc: Adrian Huang <adrianhuang0701@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>
Cc: Marco Elver <elver@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
