Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: core: Use ktime_get_ts()

do_posix_clock_monotonic_gettime() is a leftover from the initial
posix timer implementation which maps to ktime_get_ts().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Thomas Gleixner and committed by
Takashi Iwai
26204e04 b4f75aea

+3 -3
+1 -1
include/sound/pcm.h
··· 932 932 struct timespec *tv) 933 933 { 934 934 if (runtime->tstamp_type == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC) 935 - do_posix_clock_monotonic_gettime(tv); 935 + ktime_get_ts(tv); 936 936 else 937 937 getnstimeofday(tv); 938 938 }
+2 -2
sound/core/timer.c
··· 390 390 struct timespec tstamp; 391 391 392 392 if (timer_tstamp_monotonic) 393 - do_posix_clock_monotonic_gettime(&tstamp); 393 + ktime_get_ts(&tstamp); 394 394 else 395 395 getnstimeofday(&tstamp); 396 396 if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_START || ··· 1203 1203 } 1204 1204 if (tu->last_resolution != resolution || ticks > 0) { 1205 1205 if (timer_tstamp_monotonic) 1206 - do_posix_clock_monotonic_gettime(&tstamp); 1206 + ktime_get_ts(&tstamp); 1207 1207 else 1208 1208 getnstimeofday(&tstamp); 1209 1209 }