浏览代码

[PATCH] tty buffering: comment out debug code

Comment out debug code in tty receive buffering.  For performance reasons
(I'll keep it enabled in -mm).

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Paul Fulghum 19 年之前
父节点
当前提交
6af6aab34a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/char/tty_io.c

+ 1 - 1
drivers/char/tty_io.c

@@ -303,7 +303,7 @@ static struct tty_buffer *tty_buffer_find(struct tty_struct *tty, size_t size)
 			t->commit = 0;
 			t->commit = 0;
 			t->read = 0;
 			t->read = 0;
 			/* DEBUG ONLY */
 			/* DEBUG ONLY */
-			memset(t->data, '*', size);
+/*			memset(t->data, '*', size); */
 /* 			printk("Flip recycle %p\n", t); */
 /* 			printk("Flip recycle %p\n", t); */
 			return t;
 			return t;
 		}
 		}