• Paul Mackerras's avatar
    [POWERPC] Fix irq enable/disable in smp_generic_take_timebase · 467c3780
    Paul Mackerras authored
    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: default avatarPaul Mackerras <paulus@samba.org>
    467c3780
smp-tbsync.c 3.32 KB