]> git.karo-electronics.de Git - linux-beck.git/commit
kernel: time: Add udelay_test module to validate udelay
authorDavid Riley <davidriley@chromium.org>
Mon, 16 Jun 2014 21:58:32 +0000 (14:58 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 17:16:35 +0000 (10:16 -0700)
commite704f93af5a083c07b8f722672d63a1d908daf55
tree0a50758b433101ad3616726c6b9fd29c6943301a
parent1af447bd8cbfb808a320885d214555fb2d32e6e6
kernel: time: Add udelay_test module to validate udelay

Create a module that allows udelay() to be executed to ensure that
it is delaying at least as long as requested (with a little bit of
error allowed).

There are some configurations which don't have reliably udelay
due to using a loop delay with cpufreq changes which should use
a counter time based delay instead.  This test aims to identify
those configurations where timing is unreliable.

Signed-off-by: David Riley <davidriley@chromium.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/Makefile
kernel/time/udelay_test.c [new file with mode: 0644]
lib/Kconfig.debug