[POWERPC] Fix irq enable/disable in smp_generic_take_timebase
authorPaul Mackerras <paulus@samba.org>
Wed, 30 Aug 2006 06:10:47 +0000 (16:10 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 30 Aug 2006 06:10:47 +0000 (16:10 +1000)
commit467c37801c453849a2fe243c3226476ee3985868
treeb1e9dedf59ff9144945cb711a96274f4ca9bce62
parente0d872d536bb93335d5905b09fe374a163486d43
[POWERPC] Fix irq enable/disable in smp_generic_take_timebase

Eran Ben-Avi <eranpublic@yahoo.com> pointed out that the arch/ppc version
of smp_generic_take_timebase disables interrupts on entry but exits without
restoring them.  However, both it and the arch/powerpc version have another
problem, which is that they use local_irq_disable/enable rather than
local_irq_save/restore, and they are called with interrupts disabled.

This fixes both problems; it changes a return to a break in the arch/ppc
version, and changes both versions to use local_irq_save/restore.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/smp-tbsync.c
arch/ppc/kernel/smp-tbsync.c