Skip to content

Commit 645e064

Browse files
t-8chKAGA-KOKO
authored andcommitted
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
1 parent e887579 commit 645e064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/core/hrtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt)
4444
}
4545

4646
/* 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));
4848
if (delta > 0)
4949
ticks += ktime_divns(delta, ticks * resolution);
5050

0 commit comments

Comments
 (0)