Skip to content

Commit 16774f7

Browse files
richardxnuclarkgregkh
authored andcommitted
hrtimers: Update the return type of enqueue_hrtimer()
[ Upstream commit da7100d ] The return type should be 'bool' instead of 'int' according to the calling context in the kernel, and its internal implementation, i.e. : return timerqueue_add(); which is a bool-return function. [ tglx: Adjust function arguments ] Signed-off-by: Richard Clark <richard.xnu.clark@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/Z2ppT7me13dtxm1a@MBC02GN1V4Q05P Stable-dep-of: f2e388a ("hrtimer: Reduce trace noise in hrtimer_start()") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b54f14e commit 16774f7

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

kernel/time/hrtimer.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,11 +1099,10 @@ EXPORT_SYMBOL_GPL(hrtimer_forward);
10991099
* The timer is inserted in expiry order. Insertion into the
11001100
* red black tree is O(log(n)). Must hold the base lock.
11011101
*
1102-
* Returns 1 when the new timer is the leftmost timer in the tree.
1102+
* Returns true when the new timer is the leftmost timer in the tree.
11031103
*/
1104-
static int enqueue_hrtimer(struct hrtimer *timer,
1105-
struct hrtimer_clock_base *base,
1106-
enum hrtimer_mode mode)
1104+
static bool enqueue_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base,
1105+
enum hrtimer_mode mode)
11071106
{
11081107
debug_activate(timer, mode);
11091108
WARN_ON_ONCE(!base->cpu_base->online);

0 commit comments

Comments
 (0)