mirror of
https://github.com/schoebel/mars
synced 2025-01-14 02:50:48 +00:00
improve msleep()
This commit is contained in:
parent
59af89b6f9
commit
6a13ccaa71
2
brick.h
2
brick.h
@ -2,6 +2,8 @@
|
||||
#ifndef BRICK_H
|
||||
#define BRICK_H
|
||||
|
||||
#define msleep msleep_interruptible
|
||||
|
||||
#include <linux/list.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/sched.h>
|
||||
|
2
mars.h
2
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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user