]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
timers: Add comments about calc_index() ceiling work
authorFrederic Weisbecker <frederic@kernel.org>
Fri, 17 Jul 2020 14:05:44 +0000 (16:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 17 Jul 2020 19:55:22 +0000 (21:55 +0200)
commit4468897211628865ee2392acb5ad281f74176f63
treee7ba2e16e4ad15ea6237da10b86c088d8d6184cc
parent9a2b764b06c880678416d803d027f575ae40ec99
timers: Add comments about calc_index() ceiling work

calc_index() adds 1 unit of the level granularity to the expiry passed
in parameter to ensure that the timer doesn't expire too early. Add a
comment to explain that and the resulting layout in the wheel.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
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-6-frederic@kernel.org
kernel/time/timer.c