From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261216AbVG1A5o (ORCPT ); Wed, 27 Jul 2005 20:57:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261231AbVG1A5o (ORCPT ); Wed, 27 Jul 2005 20:57:44 -0400 Received: from [203.171.93.254] ([203.171.93.254]:65206 "EHLO cunningham.myip.net.au") by vger.kernel.org with ESMTP id S261216AbVG1A5n (ORCPT ); Wed, 27 Jul 2005 20:57:43 -0400 Subject: Re: [PATCH 1/23] Add missing device_suspsend(PMSG_FREEZE) calls. From: Nigel Cunningham Reply-To: ncunningham@cyclades.com To: "Eric W. Biederman" Cc: Andrew Morton , Linus Torvalds , Linux Kernel Mailing List , Linux-pm mailing list In-Reply-To: References: Content-Type: text/plain Organization: Cycades Message-Id: <1122400462.4382.13.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Wed, 27 Jul 2005 03:54:23 +1000 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi. Could you please send PMSG_* related patches to linux-pm at lists.osdl.org as well? Thanks! Nigel On Wed, 2005-07-27 at 03:21, Eric W. Biederman wrote: > In the recent addition of device_suspend calls into > sys_reboot two code paths were missed. > > Signed-off-by: Eric W. Biederman > --- > > kernel/sys.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > 5f0fb00783b94248b5a76c161f1c30a033fce4d3 > diff --git a/kernel/sys.c b/kernel/sys.c > --- a/kernel/sys.c > +++ b/kernel/sys.c > @@ -391,6 +391,7 @@ asmlinkage long sys_reboot(int magic1, i > case LINUX_REBOOT_CMD_RESTART: > notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); > system_state = SYSTEM_RESTART; > + device_suspend(PMSG_FREEZE); > device_shutdown(); > printk(KERN_EMERG "Restarting system.\n"); > machine_restart(NULL); > @@ -452,6 +453,7 @@ asmlinkage long sys_reboot(int magic1, i > } > notifier_call_chain(&reboot_notifier_list, SYS_RESTART, NULL); > system_state = SYSTEM_RESTART; > + device_suspend(PMSG_FREEZE); > device_shutdown(); > printk(KERN_EMERG "Starting new kernel\n"); > machine_shutdown(); > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Evolution. Enumerate the requirements. Consider the interdependencies. Calculate the probabilities.