From: Akinobu Mita Date: Sun, 26 Mar 2006 09:39:04 +0000 (-0800) Subject: [PATCH] bitops: cris: remove unnecessary local_irq_restore() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72b61a3cfd80d1321eb898be8ceae2064f0fbea1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] bitops: cris: remove unnecessary local_irq_restore() remove unnecessary local_irq_restore() after cris_atomic_restore() in test_and_set_bit(). Signed-off-by: Akinobu Mita Cc: Mikael Starvik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-cris/bitops.h b/include/asm-cris/bitops.h index b7fef1572dc..f8a67476931 100644 --- a/include/asm-cris/bitops.h +++ b/include/asm-cris/bitops.h @@ -101,7 +101,6 @@ static inline int test_and_set_bit(int nr, volatile unsigned long *addr) retval = (mask & *adr) != 0; *adr |= mask; cris_atomic_restore(addr, flags); - local_irq_restore(flags); return retval; }