diff options
author | David Riley <davidriley@chromium.org> | 2014-06-16 17:58:32 -0400 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2014-07-23 13:16:35 -0400 |
commit | e704f93af5a083c07b8f722672d63a1d908daf55 (patch) | |
tree | 0a50758b433101ad3616726c6b9fd29c6943301a /lib | |
parent | 1af447bd8cbfb808a320885d214555fb2d32e6e6 (diff) |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Kconfig.debug | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 7a638aa3545b..24a26ad5c99d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
@@ -1649,6 +1649,15 @@ config TEST_BPF | |||
1649 | 1649 | ||
1650 | If unsure, say N. | 1650 | If unsure, say N. |
1651 | 1651 | ||
1652 | config TEST_UDELAY | ||
1653 | tristate "udelay test driver" | ||
1654 | default n | ||
1655 | help | ||
1656 | This builds the "udelay_test" module that helps to make sure | ||
1657 | that udelay() is working properly. | ||
1658 | |||
1659 | If unsure, say N. | ||
1660 | |||
1652 | source "samples/Kconfig" | 1661 | source "samples/Kconfig" |
1653 | 1662 | ||
1654 | source "lib/Kconfig.kgdb" | 1663 | source "lib/Kconfig.kgdb" |