From: Olaf Hering Subject: Re: [PATCH 01/11] kexec: add kexec_is_loaded function Date: Mon, 1 Aug 2011 14:59:23 +0200 Message-ID: <20110801125923.GB9956@aepfle.de> References: <20110728132300.248098023@aepfle.de> <20110728132300.620721927@aepfle.de> <20110729173434.GA7745@dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20110729173434.GA7745@dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, Jul 29, Konrad Rzeszutek Wilk wrote: > > > +int kexec_is_loaded(void) > > > +{ > > > + return !!kexec_image; > > > +} > > > +EXPORT_SYMBOL_GPL(kexec_is_loaded); > > > > Wouldn't this return true just if a kexec_image is loaded no matter if > > this is a normal shutdown or if it is an actually kexec reboot? This patch is not needed if every cleanup is done right during bootup. See the 3rd version of my kexec/kdump patch which I sent out today. Olaf