]> git.karo-electronics.de Git - linux-beck.git/commit
sound: Use hrtimer_resolution instead of hrtimer_get_res()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 14 Apr 2015 21:08:30 +0000 (21:08 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 22 Apr 2015 15:06:48 +0000 (17:06 +0200)
commit447fbbdc2cd58cdaf410fefef365a9ce38833157
tree3963eb5fa9e503e924b8ff142b19d017c9daead8
parent1e3176885cce8e0137d6f4072c5910bfa00901ed
sound: Use hrtimer_resolution instead of hrtimer_get_res()

No point in converting a timespec now that the value is directly
accessible. Get rid of the null check while at it. Resolution is
guaranteed to be > 0.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: alsa-devel@alsa-project.org
Link: http://lkml.kernel.org/r/20150414203500.799133359@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
sound/core/hrtimer.c
sound/drivers/pcsp/pcsp.c