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)
commit58f60c222e8d4503a4be654cbd6d4e190dc1a7d8
treecde29de11e157697767bff7e94de7ea4a712f408
parenta6f3eefad8d1c9abd98fa03ba2b3abeb708e3b95
xtensa: clean up udelay

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