diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2020-07-17 16:05:45 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-07-17 21:55:22 +0200 |
commit | 001ec1b3925da0d51847c23fc0aa4129282db526 (patch) | |
tree | 0ca510af92153bc4788f719e657e3532eed825dd /kernel/irq_work.c | |
parent | 4468897211628865ee2392acb5ad281f74176f63 (diff) |
timers: Optimize _next_timer_interrupt() level iteration
If a level has a timer that expires before reaching the next level, there
is no need to iterate further.
The next level is reached when the 3 lower bits of the current level are
cleared. If the next event happens before/during that, the next levels
won't provide an earlier expiration.
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20200717140551.29076-7-frederic@kernel.org
Diffstat (limited to 'kernel/irq_work.c')
0 files changed, 0 insertions, 0 deletions