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 /kernel/time/Makefile | |
| 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 'kernel/time/Makefile')
| -rw-r--r-- | kernel/time/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/time/Makefile b/kernel/time/Makefile index e59ce8b1b550..7347426fa68d 100644 --- a/kernel/time/Makefile +++ b/kernel/time/Makefile | |||
| @@ -13,6 +13,7 @@ obj-$(CONFIG_TICK_ONESHOT) += tick-oneshot.o | |||
| 13 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o | 13 | obj-$(CONFIG_TICK_ONESHOT) += tick-sched.o |
| 14 | obj-$(CONFIG_TIMER_STATS) += timer_stats.o | 14 | obj-$(CONFIG_TIMER_STATS) += timer_stats.o |
| 15 | obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o | 15 | obj-$(CONFIG_DEBUG_FS) += timekeeping_debug.o |
| 16 | obj-$(CONFIG_TEST_UDELAY) += udelay_test.o | ||
| 16 | 17 | ||
| 17 | $(obj)/time.o: $(obj)/timeconst.h | 18 | $(obj)/time.o: $(obj)/timeconst.h |
| 18 | 19 | ||
| @@ -29,3 +30,4 @@ quiet_cmd_bc = BC $@ | |||
| 29 | targets += timeconst.h | 30 | targets += timeconst.h |
| 30 | $(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE | 31 | $(obj)/timeconst.h: $(obj)/hz.bc $(src)/timeconst.bc FORCE |
| 31 | $(call if_changed,bc) | 32 | $(call if_changed,bc) |
| 33 | |||
