xtensa: fix __delay for small loop count
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 16 Oct 2013 22:42:16 +0000 (02:42 +0400)
committerChris Zankel <chris@zankel.net>
Tue, 14 Jan 2014 18:19:53 +0000 (10:19 -0800)
commit01e3b3cb2d70ca9d95769e863ca71a85f84c3917
tree1e29afd18198204a445a7d81bbd513441b74633f
parent5515daa9ca5a0992cc1c55d4c6c7ddb116e829b4
xtensa: fix __delay for small loop count

Avoid __delay counter underflow for loop counts < 2.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/delay.h