Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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


authored by

Thomas Weißschuh and committed by
Thomas Gleixner
3c3af563 009eb5da

+2 -2
+2 -2
kernel/time/hrtimer.c
··· 1567 1567 static inline int hrtimer_clockid_to_base(clockid_t clock_id) 1568 1568 { 1569 1569 switch (clock_id) { 1570 - case CLOCK_REALTIME: 1571 - return HRTIMER_BASE_REALTIME; 1572 1570 case CLOCK_MONOTONIC: 1573 1571 return HRTIMER_BASE_MONOTONIC; 1572 + case CLOCK_REALTIME: 1573 + return HRTIMER_BASE_REALTIME; 1574 1574 case CLOCK_BOOTTIME: 1575 1575 return HRTIMER_BASE_BOOTTIME; 1576 1576 case CLOCK_TAI: