Re: [PATCH v3 11/11] powerpc: rewrite local_t using soft_irq

2016-11-27 Thread Madhavan Srinivasan
On Tuesday 15 November 2016 01:36 PM, Gabriel Paubert wrote: Hi, On Mon, Nov 14, 2016 at 11:34:52PM +0530, Madhavan Srinivasan wrote: Local atomic operations are fast and highly reentrant per CPU counters. Used for percpu variable updates. Local atomic operations only guarantee vari

Re: [PATCH v3 11/11] powerpc: rewrite local_t using soft_irq

2016-11-15 Thread Benjamin Herrenschmidt
On Tue, 2016-11-15 at 09:06 +0100, Gabriel Paubert wrote: > > I'm really wondering whether this is the kind of thing that would > benefit from transactions. But transactional memory was only implemented > on Power7 and later IIRC, and we still need to support machines without > transactional memor

Re: [PATCH v3 11/11] powerpc: rewrite local_t using soft_irq

2016-11-15 Thread Gabriel Paubert
Hi, On Mon, Nov 14, 2016 at 11:34:52PM +0530, Madhavan Srinivasan wrote: > Local atomic operations are fast and highly reentrant per CPU counters. > Used for percpu variable updates. Local atomic operations only guarantee > variable modification atomicity wrt the CPU which owns the data an