From 1ea99e2b2fb8a65aca061a99507cf04fd0b034cd Mon Sep 17 00:00:00 2001 From: Georgi Chorbadzhiyski Date: Tue, 20 Sep 2011 12:31:04 +0300 Subject: [PATCH] Mention CONFIG_HIGH_RES_TIMERS kernel setting. --- README | 3 +++ sleep.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README b/README index ddd9fce..f49d7bc 100644 --- a/README +++ b/README @@ -10,6 +10,9 @@ Installation mptsd do not depend on any external libraries. There are two source code dependancies that come with mptsd - libfuncs and libtsfuncs. +Make sure your kernel has CONFIG_HIGH_RES_TIMERS enabled. Otherwise sleep +timeout probably won't be able to calibrate itself and mptsd will not work. + Documentation ============= mptsd is controlled using command line parameters. Run mptsd to see all of diff --git a/sleep.c b/sleep.c index f6819cf..7f24c80 100644 --- a/sleep.c +++ b/sleep.c @@ -52,7 +52,7 @@ void * calibrate_sleep(void *_config) { } if (conf->output_tmout < 0) { - LOGf("usleep overhead is to much!! Disabling output rate control.\n"); + LOGf("usleep overhead is too high! Make sure the kernel is compiled with CONFIG_HIGH_RES_TIMERS.\n"); conf->output_tmout = 0; }