alarmtimer: don't rate limit one-shot timers
authorGreg Hackmann <ghackmann@google.com>
Mon, 24 Jul 2017 17:19:24 +0000 (10:19 -0700)
committerDanny Wood <danwood76@gmail.com>
Tue, 28 Sep 2021 12:06:42 +0000 (13:06 +0100)
commitb53722cfc979bca7d1711e8934324d1589a9e67b
tree427c3217c9fa0f1e00d8c9ca32a0f07c89b7308c
parenta356ed99853ab1105a1fc751fedf36abebdc91ed
alarmtimer: don't rate limit one-shot timers

Commit ff86bf0c65f1 ("alarmtimer: Rate limit periodic intervals") sets a
minimum bound on the alarm timer interval.  This minimum bound shouldn't
be applied if the interval is 0.  Otherwise, one-shot timers will be
converted into periodic ones.

Fixes: ff86bf0c65f1 ("alarmtimer: Rate limit periodic intervals")
Change-Id: I3dd6cb7b5caec3d39b956489448c19d3cda41e5c
Reported-by: Ben Fennema <fennema@google.com>
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Cc: stable@vger.kernel.org
Cc: John Stultz <john.stultz@linaro.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
kernel/time/alarmtimer.c