From 4f463ebc46463d397e8a4c5296ad2168ce881bde Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 9 May 2013 04:22:05 +0800 Subject: Speed up mutex and kb_scan test The current delay is unnecessarily long. This CL shortens the delay. BUG=chrome-os-partner:19236 TEST='make runtests' BRANCH=None Change-Id: Ica07458e7ae15cf28c3482b6df96df66c0d45182 Signed-off-by: Vic Yang Reviewed-on: https://gerrit.chromium.org/gerrit/50487 Reviewed-by: Vincent Palatin --- test/kb_scan.c | 2 +- test/mutex.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/kb_scan.c b/test/kb_scan.c index be08e838ff..756d87b8ee 100644 --- a/test/kb_scan.c +++ b/test/kb_scan.c @@ -18,7 +18,7 @@ #define KEYDOWN_DELAY_MS 10 #define KEYDOWN_RETRY 10 -#define NO_KEYDOWN_DELAY_MS 200 +#define NO_KEYDOWN_DELAY_MS 100 #define TEST_ASSERT(n) \ do { \ diff --git a/test/mutex.c b/test/mutex.c index bc20062d89..e795fa15b7 100644 --- a/test/mutex.c +++ b/test/mutex.c @@ -20,8 +20,8 @@ static uint32_t prng(uint32_t x) return 22695477 * x + 1; } -/* period between 50us and 12.8ms */ -#define PERIOD_US(num) (((num % 256) + 1) * 50) +/* period between 50us and 3.2ms */ +#define PERIOD_US(num) (((num % 64) + 1) * 50) /* one of the 3 MTX3x tasks */ #define RANDOM_TASK(num) (TASK_ID_MTX3C + (num % 3)) -- cgit v1.2.1