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.

ALSA: hrtimer: Avoid direct access to hrtimer clockbase

The field timer->base->get_time is a private implementation detail and
should not be accessed outside of the hrtimer core.

Switch to the equivalent helper.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/all/20250821-hrtimer-cleanup-get_time-v2-5-3ae822e5bfbd@linutronix.de

authored by

Thomas Weißschuh and committed by
Thomas Gleixner
645e0644 e8875795

+1 -1
+1 -1
sound/core/hrtimer.c
··· 44 44 } 45 45 46 46 /* calculate the drift */ 47 - delta = ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt)); 47 + delta = ktime_sub(hrtimer_cb_get_time(hrt), hrtimer_get_expires(hrt)); 48 48 if (delta > 0) 49 49 ticks += ktime_divns(delta, ticks * resolution); 50 50