if (!IS_ENABLED(CONFIG_MAGIC_SYSRQ_SERIAL))
return 0;
- if (!port->has_sysrq && !IS_ENABLED(SUPPORT_SYSRQ))
- return 0;
-
- if (!port->sysrq)
+ if (!port->has_sysrq || !port->sysrq)
return 0;
if (ch && time_before(jiffies, port->sysrq)) {
if (!IS_ENABLED(CONFIG_MAGIC_SYSRQ_SERIAL))
return 0;
- if (!port->has_sysrq && !IS_ENABLED(SUPPORT_SYSRQ))
- return 0;
-
- if (!port->sysrq)
+ if (!port->has_sysrq || !port->sysrq)
return 0;
if (ch && time_before(jiffies, port->sysrq)) {
{
int sysrq_ch;
- if (!port->has_sysrq && !IS_ENABLED(SUPPORT_SYSRQ)) {
+ if (!port->has_sysrq) {
spin_unlock_irqrestore(&port->lock, irqflags);
return;
}
if (port->handle_break)
port->handle_break(port);
- if (port->has_sysrq || IS_ENABLED(SUPPORT_SYSRQ)) {
+ if (port->has_sysrq) {
if (port->cons && port->cons->index == port->line) {
if (!port->sysrq) {
port->sysrq = jiffies + HZ*5;