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

Commit e163d529 authored by Rabin Vincent's avatar Rabin Vincent Committed by Russell King
Browse files

ARM: 6621/1: bitops: remove condition code clobber for CLZ



The CLZ instruction does not alter the condition flags, so remove the
"cc" clobber from the inline asm for fls().

Acked-by: default avatarNicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 22eeb8f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -285,7 +285,7 @@ static inline int fls(int x)
	if (__builtin_constant_p(x))
	if (__builtin_constant_p(x))
	       return constant_fls(x);
	       return constant_fls(x);


	asm("clz\t%0, %1" : "=r" (ret) : "r" (x) : "cc");
	asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
       	ret = 32 - ret;
       	ret = 32 - ret;
	return ret;
	return ret;
}
}