pty: Don't claim slave's ctrl_lock for master's packet mode
[firefly-linux-kernel-4.4.55.git] / drivers / tty / tty_buffer.c
index cf78d1985cd851fb2b6615054bfabf5a8e3b2b13..143deb62467d57a1f1216d3f418c2bfccb72201c 100644 (file)
@@ -60,6 +60,7 @@ void tty_buffer_lock_exclusive(struct tty_port *port)
        atomic_inc(&buf->priority);
        mutex_lock(&buf->lock);
 }
+EXPORT_SYMBOL_GPL(tty_buffer_lock_exclusive);
 
 void tty_buffer_unlock_exclusive(struct tty_port *port)
 {
@@ -73,6 +74,7 @@ void tty_buffer_unlock_exclusive(struct tty_port *port)
        if (restart)
                queue_work(system_unbound_wq, &buf->work);
 }
+EXPORT_SYMBOL_GPL(tty_buffer_unlock_exclusive);
 
 /**
  *     tty_buffer_space_avail  -       return unused buffer space