Re: [RFC PATCH v2 1/1] rename {before/after}_atomic_{inc/dec} to {before/after}_atomic

2014-05-29 Thread Pranith Kumar
On Thu, May 29, 2014 at 2:43 AM, Peter Zijlstra wrote: > > See http://marc.info/?l=linux-kernel&m=139782635207358 and the 20 or so > patches afterwards. > > This has already been done. See a -next tree or so near you. I think I will start working against the linux-next tree from now on. Thanks!

Re: [RFC PATCH v2 1/1] rename {before/after}_atomic_{inc/dec} to {before/after}_atomic

2014-05-28 Thread Peter Zijlstra
On Thu, May 29, 2014 at 12:28:10AM -0400, Pranith Kumar wrote: > There is no reason to have separete barriers for atomic_inc and atomic_dec. > All the architectures use the same barriers for both. > > We can simplify it and just have {before/after}_atomic after renaming. > > I used coccinell

Re: [RFC PATCH v2 1/1] rename {before/after}_atomic_{inc/dec} to {before/after}_atomic

2014-05-28 Thread Pranith Kumar
On 05/29/2014 12:28 AM, Pranith Kumar wrote: > diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c > index 3031bac..a5635ad 100644 > --- a/kernel/sched/cpupri.c > +++ b/kernel/sched/cpupri.c > @@ -164,7 +164,7 @@ void cpupri_set(struct cpupri *cp, int cpu, int newpri) >* do