linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Export __spin_yield
@ 2015-02-25 23:23 Suresh E. Warrier
  2015-03-19 23:08 ` Paul Mackerras
  0 siblings, 1 reply; 8+ messages in thread
From: Suresh E. Warrier @ 2015-02-25 23:23 UTC (permalink / raw)
  To: linuxppc-dev

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 lock needs to be 
an arch_spinlock_t instead of a normal spinlock.

Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com>
---
Replaced export to EXPORT_SYMBOL_GPL
Updated commit log to explain what kind of modules will need
to use the arch_spin_unlock() function

 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..f31bcee 100644
--- a/arch/powerpc/lib/locks.c
+++ b/arch/powerpc/lib/locks.c
@@ -41,6 +41,7 @@ void __spin_yield(arch_spinlock_t *lock)
 	plpar_hcall_norets(H_CONFER,
 		get_hard_smp_processor_id(holder_cpu), yield_count);
 }
+EXPORT_SYMBOL_GPL(__spin_yield);
 
 /*
  * Waiting for a read lock or a write lock on a rwlock...
-- 
1.8.3.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread
[parent not found: <1424477465-9199-2-git-send-email-warrier@linux.vnet.ibm.com>]

end of thread, other threads:[~2015-03-30 10:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-25 23:23 [PATCH] powerpc: Export __spin_yield Suresh E. Warrier
2015-03-19 23:08 ` Paul Mackerras
2015-03-30 10:17   ` Geert Uytterhoeven
2015-03-30 10:57     ` Benjamin Herrenschmidt
     [not found] <1424477465-9199-2-git-send-email-warrier@linux.vnet.ibm.com>
2015-02-24  0:10 ` Suresh E. Warrier
2015-02-24  3:38   ` Benjamin Herrenschmidt
2015-02-24 16:37     ` Suresh E. Warrier
2015-02-24 21:11       ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).