Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 049b13c3 authored by Thiemo Seufer's avatar Thiemo Seufer Committed by Ralf Baechle
Browse files

Enable/disable irq's only if needed.

parent 9f83d839
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -319,6 +319,7 @@ static inline type pfx##read##bwlq(volatile void __iomem *mem) \
	else if (cpu_has_64bits) {					\
		unsigned long __flags;					\
									\
		if (irq)						\
			local_irq_save(__flags);			\
		__asm__ __volatile__(					\
			".set	mips3"		"\t\t# __readq"	"\n\t"	\
@@ -328,6 +329,7 @@ static inline type pfx##read##bwlq(volatile void __iomem *mem) \
			".set	mips0"				"\n"	\
			: "=r" (__val)					\
			: "m" (*__mem));				\
		if (irq)						\
			local_irq_restore(__flags);			\
	} else {							\
		__val = 0;						\