From 6a13ccaa7127750fef4f0873c2cbcc0a59138a77 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 19 Oct 2011 17:48:55 +0200 Subject: [PATCH] improve msleep() --- brick.h | 2 ++ mars.h | 2 -- mars_check.c | 2 +- mars_sio.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/brick.h b/brick.h index 4790e024..74982437 100644 --- a/brick.h +++ b/brick.h @@ -2,6 +2,8 @@ #ifndef BRICK_H #define BRICK_H +#define msleep msleep_interruptible + #include #include #include diff --git a/mars.h b/mars.h index 805959fd..a1833c85 100644 --- a/mars.h +++ b/mars.h @@ -7,8 +7,6 @@ //#define MARS_TRACING // write runtime trace data to /mars/trace.csv -#define msleep msleep_interruptible - ///////////////////////////////////////////////////////////////////////// // include the generic brick infrastructure diff --git a/mars_check.c b/mars_check.c index c3ced70b..3886409f 100644 --- a/mars_check.c +++ b/mars_check.c @@ -130,7 +130,7 @@ static int check_watchdog(void *data) unsigned long flags; unsigned long now; - msleep_interruptible(5000); + msleep(5000); traced_lock(&output->check_lock, flags); diff --git a/mars_sio.c b/mars_sio.c index 5b58880a..cfb3db6c 100644 --- a/mars_sio.c +++ b/mars_sio.c @@ -358,7 +358,7 @@ static int sio_watchdog(void *data) while (!kthread_should_stop()) { int i; - msleep_interruptible(5000); + msleep(5000); for (i = 0; i <= WITH_THREAD; i++) { struct sio_threadinfo *tinfo = &output->tinfo[i];