linux/arch/powerpc
Timur Tabi 9317726de4 powerpc: Introduce macro spin_event_timeout()
The macro spin_event_timeout() takes a condition and timeout value
(in microseconds) as parameters.  It spins until either the condition is true
or the timeout expires.  It returns the result of the condition when the loop
was terminated.

This primary purpose of this macro is to poll on a hardware register until a
status bit changes.  The timeout ensures that the loop still terminates if the
bit doesn't change as expected.  This macro makes it easier for driver
developers to perform this kind of operation properly.

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Geoff Thorpe <Geoff.Thorpe@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-06-16 14:15:44 +10:00
..
boot powerpc/bootwrapper: Custom build options for XPedite52xx targets 2009-06-15 22:15:20 -05:00
configs powerpc/85xx: Add defconfig for X-ES MPC85xx boards 2009-06-15 22:15:17 -05:00
include/asm powerpc: Introduce macro spin_event_timeout() 2009-06-16 14:15:44 +10:00
kernel powerpc: Enable additional BAT registers in setup_745x_specifics() 2009-06-15 21:45:31 -05:00
kvm KVM: Fix interrupt unhalting a vcpu when it shouldn't 2009-06-10 11:48:33 +03:00
lib powerpc: Move dma-noncoherent.c from arch/powerpc/lib to arch/powerpc/mm 2009-05-27 16:32:05 +10:00
math-emu powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00
mm Merge commit 'origin/master' into next 2009-06-15 10:36:54 +10:00
oprofile powerpc/oprofile: Remove unused dump_pmcs() in FSL oprofile 2009-05-19 00:46:13 -05:00
platforms powerpc/warp: Fix ISA_DMA_THRESHOLD default 2009-06-16 14:15:44 +10:00
sysdev Merge commit 'origin/master' into next 2009-06-12 16:53:38 +10:00
xmon powerpc/xmon: Remove unused variable in xmon.c 2009-06-09 16:47:40 +10:00
Kconfig powerpc: Use generic atomic64_t implementation on 32-bit processors 2009-06-15 13:27:38 +10:00
Kconfig.debug powerpc: Keep track of emulated instructions 2009-05-21 15:44:26 +10:00
Makefile powerpc: Move VMX and VSX asm code to vector.S 2009-06-09 16:46:25 +10:00