소스 검색

[SPARC64] sunhv: Support SYSRQ properly.

By calling uart_handle_break().  We'll still do the
"sun_do_break()" handling if the user gives two
breaks in a row.

We should probably do this in the other Sparc serial
drivers too.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 년 전
부모
커밋
135066a211
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      drivers/serial/sunhv.c

+ 2 - 0
drivers/serial/sunhv.c

@@ -91,6 +91,8 @@ static struct tty_struct *receive_chars(struct uart_port *port, struct pt_regs *
 			break;
 			break;
 
 
 		if (c == CON_BREAK) {
 		if (c == CON_BREAK) {
+			if (uart_handle_break(port))
+				continue;
 			saw_console_brk = 1;
 			saw_console_brk = 1;
 			c = 0;
 			c = 0;
 		}
 		}