[PATCH v4 0/2] Add test to validate udelay

From: David Riley
Date: Mon Jun 16 2014 - 17:58:53 EST


This change adds a module and a script that makes use of it to
validate that udelay delays for at least as long as requested
(as compared to ktime).

Changes since v1:
- allow udelay() to be 0.5% faster than requested as per feedback

Changes since v2:
- fix permissions on udelay_test.sh script
- update commit message to indicate what this test targets
- fixed checkpatch whitespace error
- rebased

Changes since v3:
- fixed xtensa compile warning (and other 32-bit platforms which
use the generic do_div)
- renamed and moved config option

David Riley (2):
kernel: time: Add udelay_test module to validate udelay
tools: add script to test udelay

kernel/time/Makefile | 1 +
kernel/time/udelay_test.c | 168 ++++++++++++++++++++++++++++++++++++++++++++++
lib/Kconfig.debug | 9 +++
tools/time/udelay_test.sh | 66 ++++++++++++++++++
4 files changed, 244 insertions(+)
create mode 100644 kernel/time/udelay_test.c
create mode 100755 tools/time/udelay_test.sh

--
2.0.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/