Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Madhavan Srinivasan
On Tuesday 20 December 2016 02:33 PM, Balbir Singh wrote: On 19/12/16 19:06, Madhavan Srinivasan wrote: Move set_soft_enabled() from powerpc/kernel/irq.c to asm/hw_irq.c, to force updates to paca-soft_enabled done via these access function. Add "memory" clobber to hint compiler since paca->so

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Balbir Singh
On 20/12/16 20:32, Benjamin Herrenschmidt wrote: > On Tue, 2016-12-20 at 20:03 +1100, Balbir Singh wrote: >> >> On 19/12/16 19:06, Madhavan Srinivasan wrote: >>> Move set_soft_enabled() from powerpc/kernel/irq.c to >>> asm/hw_irq.c, to force updates to paca-soft_enabled >>> done via these access

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Benjamin Herrenschmidt
On Tue, 2016-12-20 at 20:03 +1100, Balbir Singh wrote: > > On 19/12/16 19:06, Madhavan Srinivasan wrote: > > Move set_soft_enabled() from powerpc/kernel/irq.c to > > asm/hw_irq.c, to force updates to paca-soft_enabled > > done via these access function. Add "memory" clobber > > to hint compiler si

Re: [PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-20 Thread Balbir Singh
On 19/12/16 19:06, Madhavan Srinivasan wrote: > Move set_soft_enabled() from powerpc/kernel/irq.c to > asm/hw_irq.c, to force updates to paca-soft_enabled > done via these access function. Add "memory" clobber > to hint compiler since paca->soft_enabled memory is the target > here > +static inlin

[PATCH v4 02/12] powerpc: move set_soft_enabled() and rename

2016-12-19 Thread Madhavan Srinivasan
Move set_soft_enabled() from powerpc/kernel/irq.c to asm/hw_irq.c, to force updates to paca-soft_enabled done via these access function. Add "memory" clobber to hint compiler since paca->soft_enabled memory is the target here Renaming it as soft_enabled_set() will make namespaces works better as p