Commit 7c6e16ca authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] isicom: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee the task delays at
least the desired time amount.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a999810c
......@@ -48,6 +48,7 @@
#include <linux/miscdevice.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/delay.h>
#include <linux/ioport.h>
#include <asm/uaccess.h>
......@@ -1906,8 +1907,7 @@ int init_module(void)
void cleanup_module(void)
{
re_schedule = 0;
set_current_state(TASK_INTERRUPTIBLE);
schedule_timeout(HZ);
msleep(1000);
#ifdef ISICOM_DEBUG
printk("ISICOM: isicom_tx tx_count = %ld.\n", tx_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment