]> git.baikalelectronics.ru Git - kernel.git/commit
posix-cpu-timers: Provide task validation functions
authorThomas Gleixner <tglx@linutronix.de>
Wed, 21 Aug 2019 19:08:48 +0000 (21:08 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Aug 2019 09:50:24 +0000 (11:50 +0200)
commit897098504f597c05afbaebebe4fa1d09ab58959f
treea70ff8d85814eb6a81ec56e3fe8a462f6810b63e
parent013dfe0878514ee621c6d95be7fbfbfc85b5a58f
posix-cpu-timers: Provide task validation functions

The code contains three slightly different copies of validating whether a
given clock resolves to a valid task and whether the current caller has
permissions to access it.

Create central functions. Replace check_clock() as a first step and rename
it to something sensible.

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