On Fri, Apr 22, 2016 at 01:09:38PM +0200, Geert Uytterhoeven wrote:
> On Fri, Apr 22, 2016 at 11:04 AM, Peter Zijlstra wrote:
> > All the atomic operations have their arguments the wrong way around;
>
> s/wrong/other/?
Nah, I find they really are the wrong way around. I forever write:
atomic_add
On Fri, Apr 22, 2016 at 11:04 AM, Peter Zijlstra wrote:
> All the atomic operations have their arguments the wrong way around;
s/wrong/other/?
> make atomic_fetch_or() consistent and flip them.
BTW, there are a few other inconsistencies:
atomic_add_unless()
atomic_cmpxchg()
atomic_inc_not_zero
On Fri, Apr 22, 2016 at 11:04:14AM +0200, Peter Zijlstra wrote:
> All the atomic operations have their arguments the wrong way around;
> make atomic_fetch_or() consistent and flip them.
>
> Signed-off-by: Peter Zijlstra (Intel)
> ---
> include/linux/atomic.h |4 ++--
> kernel/time/tick-sch
All the atomic operations have their arguments the wrong way around;
make atomic_fetch_or() consistent and flip them.
Signed-off-by: Peter Zijlstra (Intel)
---
include/linux/atomic.h |4 ++--
kernel/time/tick-sched.c |4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--- a/incl
4 matches
Mail list logo