Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1240284

Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}() variants for inc/dec atomics

From Will Deacon <will.deacon@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}() variants for inc/dec atomics
Date 2015-10-06 11:10 +0200
Message-ID <qgwpY-1Fi-21@gated-at.bofh.it> (permalink)
References <qevRo-6TJ-11@gated-at.bofh.it> <qevRo-6TJ-25@gated-at.bofh.it> <qeFH5-4bi-21@gated-at.bofh.it> <qghTX-5HU-9@gated-at.bofh.it> <qgjVM-8O-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Oct 05, 2015 at 09:48:24PM +0200, Peter Zijlstra wrote:
> On Mon, Oct 05, 2015 at 06:32:43PM +0100, Will Deacon wrote:
> > On Thu, Oct 01, 2015 at 07:39:10AM +0100, Peter Zijlstra wrote:
> > > On Wed, Sep 30, 2015 at 01:03:11PM -0700, Davidlohr Bueso wrote:
> > > > Similar to what we have for regular add/sub calls. For now, no actual arch
> > > > implements them, so everyone falls back to the default atomics... iow,
> > > > nothing changes. These will be used in future primitives.
> > > > 
> > > 
> > > Maybe also do an aargh64 patch for this?
> > 
> > I can follow up with that, since I'm about 60% through adding the
> > relaxed/acquire/release versions of all the other primitives. It's a fair
> > amount of work thanks to the new atomic instructions making me do everything
> > twice... (that and I've been on holiday this past week!)
> 
> Right, what I meant was arm (I thought argh64 was the one with _relaxed
> bits in, but my memories tricked me, it was ARM).
> 
> If you add new _relaxed ops, we'd better convert all archs that support
> _relaxed, which would be ARM (for now).

Right, yeah, arch/arm/ will need updating along with this series. Should
be straightforward to implement them in terms of atomic_{add,sub}_*.

Will
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH -tip v3 0/5] locking: Use acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-30 22:10 +0200
  [PATCH 5/5] locking/rwsem: Use acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-30 22:10 +0200
    [tip:locking/core] locking/rwsem: Use acquire/release semantics tip-bot for Davidlohr Bueso <tipbot@zytor.com> - 2015-10-06 18:30 +0200
  [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}() variants for inc/dec atomics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-30 22:10 +0200
    Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}()  variants for inc/dec atomics Peter Zijlstra <peterz@infradead.org> - 2015-10-01 08:40 +0200
      Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}()  variants for inc/dec atomics Will Deacon <will.deacon@arm.com> - 2015-10-05 19:40 +0200
        Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}()  variants for inc/dec atomics Peter Zijlstra <peterz@infradead.org> - 2015-10-05 21:50 +0200
          Re: [PATCH 1/5] asm-generic: Add _{relaxed|acquire|release}()  variants for inc/dec atomics Will Deacon <will.deacon@arm.com> - 2015-10-06 11:10 +0200
    [tip:locking/core] locking/asm-generic:   Add _{relaxed|acquire|release}() variants for inc/dec atomics tip-bot for Davidlohr Bueso <tipbot@zytor.com> - 2015-10-06 18:30 +0200
  [PATCH 3/5] locking/rtmutex: Use acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-09-30 22:10 +0200
    [tip:locking/core] locking/rtmutex: Use acquire/release semantics tip-bot for Davidlohr Bueso <tipbot@zytor.com> - 2015-10-06 18:30 +0200
  Re: [PATCH -tip v3 0/5] locking: Use acquire/release semantics Thomas Gleixner <tglx@linutronix.de> - 2015-09-30 22:40 +0200
  [PATCH 6/5] locking/qspinlock: Use acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-10-13 19:10 +0200
    Re: [PATCH 6/5] locking/qspinlock: Use acquire/release semantics Davidlohr Bueso <dave@stgolabs.net> - 2015-10-13 20:10 +0200

csiph-web