Skip to content

Commit 3c3af56

Browse files
t-8chKAGA-KOKO
authored andcommitted
hrtimer: Reorder branches in hrtimer_clockid_to_base()
Align the ordering to the one used for hrtimer_bases. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250821-hrtimer-cleanup-get_time-v2-9-3ae822e5bfbd@linutronix.de
1 parent 009eb5d commit 3c3af56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/time/hrtimer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,10 +1567,10 @@ u64 hrtimer_next_event_without(const struct hrtimer *exclude)
15671567
static inline int hrtimer_clockid_to_base(clockid_t clock_id)
15681568
{
15691569
switch (clock_id) {
1570-
case CLOCK_REALTIME:
1571-
return HRTIMER_BASE_REALTIME;
15721570
case CLOCK_MONOTONIC:
15731571
return HRTIMER_BASE_MONOTONIC;
1572+
case CLOCK_REALTIME:
1573+
return HRTIMER_BASE_REALTIME;
15741574
case CLOCK_BOOTTIME:
15751575
return HRTIMER_BASE_BOOTTIME;
15761576
case CLOCK_TAI:

0 commit comments

Comments
 (0)