Re: [patch V2 01/38] posix-cpu-timers: Provide task validation functions

2019-08-23 Thread Thomas Gleixner
On Thu, 22 Aug 2019, Frederic Weisbecker wrote: > On Thu, Aug 22, 2019 at 12:33:56AM +0200, Frederic Weisbecker wrote: > > On Wed, Aug 21, 2019 at 09:08:48PM +0200, Thomas Gleixner wrote: > > > The code contains three slightly different copies of validating whether a > > > given clock resolves to a

Re: [patch V2 01/38] posix-cpu-timers: Provide task validation functions

2019-08-21 Thread Frederic Weisbecker
On Thu, Aug 22, 2019 at 12:33:56AM +0200, Frederic Weisbecker wrote: > On Wed, Aug 21, 2019 at 09:08:48PM +0200, Thomas Gleixner wrote: > > The code contains three slightly different copies of validating whether a > > given clock resolves to a valid task and whether the current caller has > > permi

Re: [patch V2 01/38] posix-cpu-timers: Provide task validation functions

2019-08-21 Thread Frederic Weisbecker
On Wed, Aug 21, 2019 at 09:08:48PM +0200, Thomas Gleixner wrote: > 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