Re: [RFC PATCH 0/9]powerpc: "paca->soft_enabled" based local atomic operation implementation

2016-07-26 Thread Madhavan Srinivasan
On Tuesday 26 July 2016 05:51 PM, Benjamin Herrenschmidt wrote: On Mon, 2016-07-25 at 20:22 +0530, Madhavan Srinivasan wrote: But this patchset uses Benjamin Herrenschmidt suggestion of using arch_local_irq_disable_var() to soft_disable interrupts (including PMIs). After finishing the "op", ar

Re: [RFC PATCH 0/9]powerpc: "paca->soft_enabled" based local atomic operation implementation

2016-07-26 Thread Benjamin Herrenschmidt
On Mon, 2016-07-25 at 20:22 +0530, Madhavan Srinivasan wrote: > But this patchset uses Benjamin Herrenschmidt suggestion of using > arch_local_irq_disable_var() to soft_disable interrupts (including PMIs). > After finishing the "op", arch_local_irq_restore() called and correspondingly > interrupts

[RFC PATCH 0/9]powerpc: "paca->soft_enabled" based local atomic operation implementation

2016-07-25 Thread Madhavan Srinivasan
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 and these needs to be executed in a preemption safe way. Here is the design of the patchs