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.

timer_list: Print offset as signed integer

The offset of a hrtimer base may be negative.

Print those values correctly.

Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260311-hrtimer-cleanups-v1-3-095357392669@linutronix.de

authored by

Thomas Weißschuh (Schneider Electric) and committed by
Thomas Gleixner
bb2705b4 754e38d2

+2 -2
+2 -2
kernel/time/timer_list.c
··· 101 101 102 102 SEQ_printf(m, " .resolution: %u nsecs\n", hrtimer_resolution); 103 103 #ifdef CONFIG_HIGH_RES_TIMERS 104 - SEQ_printf(m, " .offset: %Lu nsecs\n", 105 - (unsigned long long) ktime_to_ns(base->offset)); 104 + SEQ_printf(m, " .offset: %Ld nsecs\n", 105 + (long long) base->offset); 106 106 #endif 107 107 SEQ_printf(m, "active timers:\n"); 108 108 print_active_timers(m, base, now + ktime_to_ns(base->offset));