Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43861
b: refs/heads/master
c: e45ccc0
h: refs/heads/master
i:
  43859: 05bc475
v: v3
  • Loading branch information
Andrew Morton authored and Martin Schwidefsky committed Dec 8, 2006
1 parent 917c2ea commit 34cce67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22155914b66b348b7113a0b3baf96a72bd3f643d
refs/heads/master: e45ccc0562e3f391dcba8b2e8a02551e8e42d8db
9 changes: 5 additions & 4 deletions trunk/drivers/s390/char/ctrlchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@

#ifdef CONFIG_MAGIC_SYSRQ
static int ctrlchar_sysrq_key;
static struct tty_struct *sysrq_tty;

static void
ctrlchar_handle_sysrq(void *tty)
ctrlchar_handle_sysrq(struct work_struct *work)
{
handle_sysrq(ctrlchar_sysrq_key, (struct tty_struct *) tty);
handle_sysrq(ctrlchar_sysrq_key, sysrq_tty);
}

static DECLARE_WORK(ctrlchar_work, ctrlchar_handle_sysrq, NULL);
static DECLARE_WORK(ctrlchar_work, ctrlchar_handle_sysrq);
#endif


Expand Down Expand Up @@ -53,7 +54,7 @@ ctrlchar_handle(const unsigned char *buf, int len, struct tty_struct *tty)
/* racy */
if (len == 3 && buf[1] == '-') {
ctrlchar_sysrq_key = buf[2];
ctrlchar_work.data = tty;
sysrq_tty = tty;
schedule_work(&ctrlchar_work);
return CTRLCHAR_SYSRQ;
}
Expand Down

0 comments on commit 34cce67

Please sign in to comment.