Re: [PATCH 07/12] drivers/media: Employ atomic_fetch_inc()

2016-07-13 Thread Mauro Carvalho Chehab
Em Mon, 20 Jun 2016 13:05:59 -0700 Davidlohr Bueso escreveu: > Now that we have fetch_inc() we can stop using inc_return() - 1. > > These are very similar to the existing OP-RETURN primitives we already > have, except they return the value of the atomic variable _before_ >

[PATCH 07/12] drivers/media: Employ atomic_fetch_inc()

2016-06-20 Thread Davidlohr Bueso
Now that we have fetch_inc() we can stop using inc_return() - 1. These are very similar to the existing OP-RETURN primitives we already have, except they return the value of the atomic variable _before_ modification. Cc: Hans Verkuil Cc: Andy Walls