Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 15 Oct 2002 00:55:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 15 Oct 2002 00:55:27 -0400 Received: from bgp01116664bgs.westln01.mi.comcast.net ([68.42.104.18]:15977 "HELO blackmagik.dynup.net") by vger.kernel.org with SMTP id ; Tue, 15 Oct 2002 00:55:26 -0400 Subject: Re: Patch: linux-2.5.42/kernel/sys.c - warm reboot should not suspend devices From: Eric Blade To: "Eric W. Biederman" Cc: "Adam J. Richter" , linux-kernel@vger.kernel.org, rmk@arm.linux.org.uk In-Reply-To: References: <200210141841.LAA19982@baldur.yggdrasil.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8.99 Date: 15 Oct 2002 00:55:52 -0400 Message-Id: <1034657752.1215.126.camel@cpq> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1323 Lines: 45 On Mon, 2002-10-14 at 16:05, Eric W. Biederman wrote: > For myself I am happy that someone introduced > device_shutdown and it has reasonable semantics. > > As for halting the system, we currently have two cases: > > > case LINUX_REBOOT_CMD_HALT: > notifier_call_chain(&reboot_notifier_list, SYS_HALT, NULL); > system_running = 0; > device_shutdown(); > printk(KERN_EMERG "System halted.\n"); > machine_halt(); > do_exit(0); > break; > > case LINUX_REBOOT_CMD_POWER_OFF: > notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF, NULL); > system_running = 0; > device_shutdown(); > printk(KERN_EMERG "Power down.\n"); > machine_power_off(); > do_exit(0); > break; > i see four occurences in my 2.5.42: LINUX_REBOOT_CMD_RESTART, LINUX_REBOOT_CMD_HALT, LINUX_REBOOT_CMD_POWER_OFF, and LINUX_REBOOT_CMD_RESTART2 > > But for the most part my impression is that we need to get devices > drivers behaving properly in the 2.5.x And that the basic model > is o.k. It just needs some pounding on the rough spots. I agree on this point :) - 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/