lkml.org 
[lkml]   [2004]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subjectsmall n_tty patch.

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.029 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site