posix-cpu-timers: Use clock ID in posix_cpu_timer_get()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:57 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:29 +0000 (11:50 +0200)
commit99093c5b81f58815fbfc1fe301c87206c6f5f730
treef4cd5d9292140fe536c43234f59d656b03bb0ef8
parentc7a37c6f4c651a531101c5721814333bae2804ec
posix-cpu-timers: Use clock ID in posix_cpu_timer_get()

Extract the clock ID (PROF/VIRT/SCHED) from the clock selector and use it
as argument to the sample functions. That allows to simplify them once all
callers are fixed.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lkml.kernel.org/r/20190821192920.155487201@linutronix.de
kernel/time/posix-cpu-timers.c