lkml.org 
[lkml]   [2014]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 05/13] sound: 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>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
---
include/sound/pcm.h | 2 +-
sound/core/timer.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

Index: linux/include/sound/pcm.h
===================================================================
--- linux.orig/include/sound/pcm.h
+++ linux/include/sound/pcm.h
@@ -932,7 +932,7 @@ static inline void snd_pcm_gettime(struc
struct timespec *tv)
{
if (runtime->tstamp_type == SNDRV_PCM_TSTAMP_TYPE_MONOTONIC)
- do_posix_clock_monotonic_gettime(tv);
+ ktime_get_ts(tv);
else
getnstimeofday(tv);
}
Index: linux/sound/core/timer.c
===================================================================
--- linux.orig/sound/core/timer.c
+++ linux/sound/core/timer.c
@@ -390,7 +390,7 @@ static void snd_timer_notify1(struct snd
struct timespec tstamp;

if (timer_tstamp_monotonic)
- do_posix_clock_monotonic_gettime(&tstamp);
+ ktime_get_ts(&tstamp);
else
getnstimeofday(&tstamp);
if (snd_BUG_ON(event < SNDRV_TIMER_EVENT_START ||
@@ -1203,7 +1203,7 @@ static void snd_timer_user_tinterrupt(st
}
if (tu->last_resolution != resolution || ticks > 0) {
if (timer_tstamp_monotonic)
- do_posix_clock_monotonic_gettime(&tstamp);
+ ktime_get_ts(&tstamp);
else
getnstimeofday(&tstamp);
}



\
 
 \ /
  Last update: 2014-06-12 05:01    [W:0.125 / U:10.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site