aboutsummaryrefslogtreecommitdiff
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2020-07-23 17:16:41 +0200
committerThomas Gleixner <[email protected]>2020-07-24 12:49:40 +0200
commit31cd0e119d50cf27ebe214d1a8f7ca36692f13a5 (patch)
tree4e393a04f8ec71e0f417953cdcbecc859a3a0c83 /lib/test_vmalloc.c
parent1b7efaa6154960396f414551841f1886d99b6872 (diff)
timers: Recalculate next timer interrupt only when necessary
The nohz tick code recalculates the timer wheel's next expiry on each idle loop iteration. On the other hand, the base next expiry is now always cached and updated upon timer enqueue and execution. Only timer dequeue may leave base->next_expiry out of date (but then its stale value won't ever go past the actual next expiry to be recalculated). Since recalculating the next_expiry isn't a free operation, especially when the last wheel level is reached to find out that no timer has been enqueued at all, reuse the next expiry cache when it is known to be reliable, which it is most of the time. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions