Re: [PATCH] powerpc: Export __spin_yield

2015-03-30 Thread Benjamin Herrenschmidt
On Mon, 2015-03-30 at 12:17 +0200, Geert Uytterhoeven wrote: > Hi Ben, > > On Fri, Mar 20, 2015 at 12:08 AM, Paul Mackerras wrote: > > On Wed, Feb 25, 2015 at 05:23:53PM -0600, Suresh E. Warrier wrote: > >> Export __spin_yield so that the arch_spin_unlock() function can > >> be invoked from a mod

Re: [PATCH] powerpc: Export __spin_yield

2015-03-30 Thread Geert Uytterhoeven
Hi Ben, On Fri, Mar 20, 2015 at 12:08 AM, Paul Mackerras wrote: > On Wed, Feb 25, 2015 at 05:23:53PM -0600, Suresh E. Warrier wrote: >> Export __spin_yield so that the arch_spin_unlock() function can >> be invoked from a module. This will be required for modules where >> we want to take a lock th

Re: [PATCH] powerpc: Export __spin_yield

2015-03-19 Thread Paul Mackerras
On Wed, Feb 25, 2015 at 05:23:53PM -0600, Suresh E. Warrier wrote: > Export __spin_yield so that the arch_spin_unlock() function can > be invoked from a module. This will be required for modules where > we want to take a lock that is also is acquired in hypervisor > real mode. Because we want to av

[PATCH] powerpc: Export __spin_yield

2015-02-25 Thread Suresh E. Warrier
Export __spin_yield so that the arch_spin_unlock() function can be invoked from a module. This will be required for modules where we want to take a lock that is also is acquired in hypervisor real mode. Because we want to avoid running any lockdep code (which may not be safe in real mode), this loc

Re: [PATCH] powerpc: Export __spin_yield

2015-02-24 Thread Benjamin Herrenschmidt
On Tue, 2015-02-24 at 10:37 -0600, Suresh E. Warrier wrote: > On 02/23/2015 09:38 PM, Benjamin Herrenschmidt wrote: > > On Mon, 2015-02-23 at 18:10 -0600, Suresh E. Warrier wrote: > >> Export __spin_yield so that the arch_spin_unlock() function > >> can be invoked from a module. > > > > Make it EX

Re: [PATCH] powerpc: Export __spin_yield

2015-02-24 Thread Suresh E. Warrier
On 02/23/2015 09:38 PM, Benjamin Herrenschmidt wrote: > On Mon, 2015-02-23 at 18:10 -0600, Suresh E. Warrier wrote: >> Export __spin_yield so that the arch_spin_unlock() function >> can be invoked from a module. > > Make it EXPORT_SYMBOL_GPL. Also explain why a module might need it > Sure, I wil

Re: [PATCH] powerpc: Export __spin_yield

2015-02-23 Thread Benjamin Herrenschmidt
On Mon, 2015-02-23 at 18:10 -0600, Suresh E. Warrier wrote: > Export __spin_yield so that the arch_spin_unlock() function > can be invoked from a module. Make it EXPORT_SYMBOL_GPL. Also explain why a module might need it > Signed-off-by: Suresh Warrier > --- > arch/powerpc/lib/locks.c | 1 + >

[PATCH] powerpc: Export __spin_yield

2015-02-23 Thread Suresh E. Warrier
Export __spin_yield so that the arch_spin_unlock() function can be invoked from a module. Signed-off-by: Suresh Warrier --- arch/powerpc/lib/locks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/lib/locks.c b/arch/powerpc/lib/locks.c index bb7cfec..d100de8 100644 --- a/arch/po