projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
009eb5d
)
hrtimer: Reorder branches in hrtimer_clockid_to_base()
author
Thomas Weißschuh
<thomas.weissschuh@linutronix.de>
Thu, 21 Aug 2025 13:28:16 +0000
(15:28 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 9 Sep 2025 10:27:18 +0000
(12:27 +0200)
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
kernel/time/hrtimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/hrtimer.c
b/kernel/time/hrtimer.c
index
fedd1d7
..
f383df2
100644
(file)
--- a/
kernel/time/hrtimer.c
+++ b/
kernel/time/hrtimer.c
@@
-1567,10
+1567,10
@@
u64 hrtimer_next_event_without(const struct hrtimer *exclude)
static inline int hrtimer_clockid_to_base(clockid_t clock_id)
{
switch (clock_id) {
- case CLOCK_REALTIME:
- return HRTIMER_BASE_REALTIME;
case CLOCK_MONOTONIC:
return HRTIMER_BASE_MONOTONIC;
+ case CLOCK_REALTIME:
+ return HRTIMER_BASE_REALTIME;
case CLOCK_BOOTTIME:
return HRTIMER_BASE_BOOTTIME;
case CLOCK_TAI: