Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105366
b: refs/heads/master
c: 2f15fc4
h: refs/heads/master
v: v3
  • Loading branch information
Zhang Rui authored and Linus Torvalds committed Jul 24, 2008
1 parent 09d63f2 commit faacac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: c1a220e7acf8ad2c03504891f4a70cd9c32c904b
refs/heads/master: 2f15fc4bdf91eb399da3f47a09c55831d9f22826
4 changes: 3 additions & 1 deletion trunk/kernel/power/poweroff.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <linux/pm.h>
#include <linux/workqueue.h>
#include <linux/reboot.h>
#include <linux/cpumask.h>

/*
* When the user hits Sys-Rq o to power down the machine this is the
Expand All @@ -25,7 +26,8 @@ static DECLARE_WORK(poweroff_work, do_poweroff);

static void handle_poweroff(int key, struct tty_struct *tty)
{
schedule_work(&poweroff_work);
/* run sysrq poweroff on boot cpu */
schedule_work_on(first_cpu(cpu_online_map), &poweroff_work);
}

static struct sysrq_key_op sysrq_poweroff_op = {
Expand Down

0 comments on commit faacac1

Please sign in to comment.