]> 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)
commitbf3830ae7717e9b6e11dab11721fc19194b991e2
treea70ff8d85814eb6a81ec56e3fe8a462f6810b63e
parentd9b47e6edf3d02d313e76114fb3f4b9113208c76
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