small n_tty patch.
From: James Simmons
Date: Mon Feb 23 2004 - 20:12:21 EST
Remove kd.h. We don't need this header. Use the inline functions to set
the current process state.
--- n_tty.c 2004-02-23 00:06:05.000000000 -0800
+++ /usr/src/ruby-2.6/drivers/char/n_tty.c 2004-02-23 00:10:20.000000000 -0800
@@ -40,7 +40,6 @@
#include <linux/tty.h>
#include <linux/timer.h>
#include <linux/ctype.h>
-#include <linux/kd.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/slab.h>
@@ -1091,7 +1090,7 @@
set_bit(TTY_DONT_FLIP, &tty->flags);
continue;
}
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
/* Deal with packet mode. */
if (tty->packet && b == buf) {
@@ -1170,7 +1169,7 @@
if (!waitqueue_active(&tty->read_wait))
tty->minimum_to_wake = minimum;
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
size = b - buf;
if (size) {
retval = size;
@@ -1246,7 +1245,7 @@
schedule();
}
break_out:
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
remove_wait_queue(&tty->write_wait, &wait);
return (b - buf) ? b - buf : retval;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/