summaryrefslogtreecommitdiffstats
path: root/arch/powerpc
diff options
context:
space:
mode:
authorSuresh E. Warrier2015-02-26 00:23:53 +0100
committerAlexander Graf2015-04-21 15:21:28 +0200
commitae75116efdc29bb42f1d99f8c51b5c52965b2413 (patch)
tree6ed10196b120a4bc51c86a16381f445c7b51db09 /arch/powerpc
parentMerge tag 'staging-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadkernel-qcow2-linux-ae75116efdc29bb42f1d99f8c51b5c52965b2413.tar.gz
kernel-qcow2-linux-ae75116efdc29bb42f1d99f8c51b5c52965b2413.tar.xz
kernel-qcow2-linux-ae75116efdc29bb42f1d99f8c51b5c52965b2413.zip
powerpc: Export __spin_yield
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> Acked-by: Paul Mackerras <paulus@samba.org> Acked-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/lib/locks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/lib/locks.c b/arch/powerpc/lib/locks.c
index 170a0346f756..f7deebdf3365 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...