xtensa: clean up udelay
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 10 Jan 2014 08:02:18 +0000 (12:02 +0400)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 14 Jan 2014 20:28:10 +0000 (00:28 +0400)
Replace division with shift, use ccount_freq instead of loops_per_jiffy.
Introduce __MAX_UDELAY and (undefined) __bad_udelay, break build for too
big udelay constants.
Remove irrelevant comment, clean up code style.

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

Simple merge