Skip to content

Commit da7100d

Browse files
richardxnuclarkKAGA-KOKO
authored andcommitted
hrtimers: Update the return type of enqueue_hrtimer()
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/Z2ppT7me13dtxm1a@MBC02GN1V4Q05P
1 parent 776b194 commit da7100d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

kernel/time/hrtimer.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,11 +1067,10 @@ EXPORT_SYMBOL_GPL(hrtimer_forward);
10671067
* The timer is inserted in expiry order. Insertion into the
10681068
* red black tree is O(log(n)). Must hold the base lock.
10691069
*
1070-
* Returns 1 when the new timer is the leftmost timer in the tree.
1070+
* Returns true when the new timer is the leftmost timer in the tree.
10711071
*/
1072-
static int enqueue_hrtimer(struct hrtimer *timer,
1073-
struct hrtimer_clock_base *base,
1074-
enum hrtimer_mode mode)
1072+
static bool enqueue_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base,
1073+
enum hrtimer_mode mode)
10751074
{
10761075
debug_activate(timer, mode);
10771076
WARN_ON_ONCE(!base->cpu_base->online);

0 commit comments

Comments
 (0)