Re: [PATCH V2] preempt-rt: allow immediate Magic SysRq output for PREEMPT_RT_FULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 22 Sep 2011 14:05:56 PDT, Frank Rowand said:
> Change from V1 to V2:  add drivers/tty/serial/8250.c

>  drivers/tty/serial/cpm_uart/cpm_uart_core.c |    2 	1 +	1 -	0 !
>  drivers/tty/serial/mfd.c                    |    2 	1 +	1 -	0 !
>  drivers/tty/serial/nwpserial.c              |    2 	1 +	1 -	0 !
>  drivers/tty/serial/omap-serial.c            |    2 	1 +	1 -	0 !
>  drivers/tty/serial/sunhv.c                  |    4 	2 +	2 -	0 !
>  drivers/tty/serial/sunsab.c                 |    2 	1 +	1 -	0 !
>  drivers/tty/serial/sunsu.c                  |    2 	1 +	1 -	0 !
>  drivers/tty/serial/sunzilog.c               |    2 	1 +	1 -	0 !
>  drivers/tty/serial/uartlite.c               |    2 	1 +	1 -	0 !
>  drivers/tty/serial/xilinx_uartps.c          |    2 	1 +	1 -	0 !

>  	if (up->port.sysrq)
>  		locked = 0;
> -	else if (oops_in_progress) {
> +	else if (oops_in_progress || sysrq_in_progress) {
>  		locked = spin_trylock(&up->port.lock);
>  	} else
>  		spin_lock(&up->port.lock);

Is it time to create a helper function for this chunk of code that appears
in almost identical form in a dozen drivers?

Attachment: pgpVxj2gqOkND.pgp
Description: PGP signature


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux