TTY: HVC, use count from tty_port

Now, count is used from tty_port and protected by tty_port->lock.

n_outbuf is left unprotected in hvc_hangup now, because there is no
point to hold any lock, since other uses are unprotected too.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
Jiri Slaby
2012-04-02 13:54:23 +02:00
提交者 Greg Kroah-Hartman
父节点 85bbc003b2
当前提交 0146b69390
修改 2 个文件,包含 21 行新增20 行删除

查看文件

@@ -49,7 +49,6 @@ struct hvc_struct {
struct tty_port port;
spinlock_t lock;
int index;
int count;
int do_wakeup;
char *outbuf;
int outbuf_size;