summaryrefslogtreecommitdiff
path: root/sound/core
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>2025-08-21 15:28:12 +0200
committerThomas Gleixner <tglx@linutronix.de>2025-09-09 12:27:18 +0200
commit645e0644300b0dac3cf31527e93e51172455749a (patch)
tree3ce1ed0767b4efa36882661f462ec1a47ab4e0c7 /sound/core
parente8875795160b484f691938ce07a381e77821f947 (diff)
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
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/hrtimer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c
index c364bd126ac8..2d5f4d47071f 100644
--- a/sound/core/hrtimer.c
+++ b/sound/core/hrtimer.c
@@ -44,7 +44,7 @@ static enum hrtimer_restart snd_hrtimer_callback(struct hrtimer *hrt)
}
/* calculate the drift */
- delta = ktime_sub(hrt->base->get_time(), hrtimer_get_expires(hrt));
+ delta = ktime_sub(hrtimer_cb_get_time(hrt), hrtimer_get_expires(hrt));
if (delta > 0)
ticks += ktime_divns(delta, ticks * resolution);