Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932252AbWELVsm (ORCPT ); Fri, 12 May 2006 17:48:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932250AbWELVsm (ORCPT ); Fri, 12 May 2006 17:48:42 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:45323 "EHLO spitz.ucw.cz") by vger.kernel.org with ESMTP id S932174AbWELVs0 (ORCPT ); Fri, 12 May 2006 17:48:26 -0400 Date: Fri, 12 May 2006 21:46:55 +0000 From: Pavel Machek To: Andi Kleen Cc: virtualization@lists.osdl.org, Chris Wright , linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, Ian Pratt Subject: Re: [RFC PATCH 26/35] Add Xen subarch reboot support Message-ID: <20060512214655.GC4189@ucw.cz> References: <20060509084945.373541000@sous-sol.org> <20060509085158.282993000@sous-sol.org> <200605091902.31327.ak@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200605091902.31327.ak@suse.de> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 26 Hi! > > + > > +/* Ignore multiple shutdown requests. */ > > +static int shutting_down = SHUTDOWN_INVALID; > > +static void __shutdown_handler(void *unused); > > +static DECLARE_WORK(shutdown_work, __shutdown_handler, NULL); > > + > > +static int shutdown_process(void *__unused) > > +{ > > + static char *envp[] = { "HOME=/", "TERM=linux", > > + "PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL }; > > + static char *poweroff_argv[] = { "/sbin/poweroff", NULL }; > > This should be configurable, probably in a sysctl Actually we have similar code in sparc and acpi parts, IIRC. We probably want to have one, common, shut-me-off routine. -- Thanks for all the (sleeping) penguins. - 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/