The patch titled pm: schedule sysrq poweroff on boot cpu has been added to the -mm tree. Its filename is pm-schedule-sysrq-poweroff-on-boot-cpu.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: pm: schedule sysrq poweroff on boot cpu From: Zhang Rui <rui.zhang@xxxxxxxxx> schedule sysrq poweroff on boot cpu. sysrq poweroff needs to disable nonboot cpus, and we need to run this on boot cpu to avoid any recursion. http://bugzilla.kernel.org/show_bug.cgi?id=10897 Signed-off-by: Zhang Rui <rui.zhang@xxxxxxxxx> Tested-by: Rus <harbour@xxxxxxxxxxx> Signed-off-by: Rafael J. Wysocki <rjw@xxxxxxx> Acked-by: Pavel Machek <pavel@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/power/poweroff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/power/poweroff.c~pm-schedule-sysrq-poweroff-on-boot-cpu kernel/power/poweroff.c --- a/kernel/power/poweroff.c~pm-schedule-sysrq-poweroff-on-boot-cpu +++ a/kernel/power/poweroff.c @@ -25,7 +25,8 @@ static DECLARE_WORK(poweroff_work, do_po 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 = { _ Patches currently in -mm which might be from rui.zhang@xxxxxxxxx are linux-next.patch pm-ahci-speed-up-resume.patch pm-introduce-new-interfaces-schedule_work_on-and-queue_work_on.patch pm-schedule-sysrq-poweroff-on-boot-cpu.patch dcdbas-use-memory_read_from_buffer.patch dell_rbu-use-memory_read_from_buffer.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html