RE: [patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap

2020-07-21 Thread Thomas Gleixner
David Laight writes: > From: Thomas Gleixner >> Sent: 21 July 2020 17:11 >> >> Frederic Weisbecker writes: >> > On Thu, Jul 16, 2020 at 10:19:25PM +0200, Thomas Gleixner wrote: >> >> --- a/kernel/time/posix-cpu-timers.c >> >> +++ b/kernel/time/posix-cpu-timers.c >> >> @@ -25,7 +25,7 @@ void

RE: [patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap

2020-07-21 Thread David Laight
From: Thomas Gleixner > Sent: 21 July 2020 17:11 > > Frederic Weisbecker writes: > > On Thu, Jul 16, 2020 at 10:19:25PM +0200, Thomas Gleixner wrote: > >> --- a/kernel/time/posix-cpu-timers.c > >> +++ b/kernel/time/posix-cpu-timers.c > >> @@ -25,7 +25,7 @@ void posix_cputimers_group_init(struct

Re: [patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap

2020-07-21 Thread Thomas Gleixner
Frederic Weisbecker writes: > On Thu, Jul 16, 2020 at 10:19:25PM +0200, Thomas Gleixner wrote: >> --- a/kernel/time/posix-cpu-timers.c >> +++ b/kernel/time/posix-cpu-timers.c >> @@ -25,7 +25,7 @@ void posix_cputimers_group_init(struct p >> posix_cputimers_init(pct); >> if (cpu_limit !=

Re: [patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap

2020-07-21 Thread Frederic Weisbecker
On Thu, Jul 16, 2020 at 10:19:25PM +0200, Thomas Gleixner wrote: > --- a/kernel/time/posix-cpu-timers.c > +++ b/kernel/time/posix-cpu-timers.c > @@ -25,7 +25,7 @@ void posix_cputimers_group_init(struct p > posix_cputimers_init(pct); > if (cpu_limit != RLIM_INFINITY) { >

[patch V2 2/5] posix-cpu-timers: Convert the flags to a bitmap

2020-07-16 Thread Thomas Gleixner
For splitting the posix cpu timer code into an interrupt context check and the actual expiry and signal handling it's required to be able to set and test for the flags atomically. Signed-off-by: Thomas Gleixner --- include/linux/posix-timers.h | 16 +++