Return-Path: Date: Tue, 9 Jun 2009 21:59:03 +0200 From: Pavel Machek Subject: Re: [patch 05/38] s390: hibernation support for s390 Message-ID: <20090609195903.GB1388@ucw.cz> References: <20090604161847.513682672@de.ibm.com> <20090604161900.659762303@de.ibm.com> <20090608064451.GD1444@ucw.cz> <20090609153402.58e6b841@blc4eb509856389.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090609153402.58e6b841@blc4eb509856389.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Hans-Joachim Picht Cc: Martin Schwidefsky , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pm@lists.linux-foundation.org, Heiko Carstens List-ID: On Tue 2009-06-09 15:34:02, Hans-Joachim Picht wrote: > On Mon, 8 Jun 2009 08:44:51 +0200 > Pavel Machek wrote: > > > > > Index: linux-2.6/arch/s390/power/swsusp.c > > > =================================================================== > > > --- /dev/null > > > +++ linux-2.6/arch/s390/power/swsusp.c > > > @@ -0,0 +1,31 @@ > > > +/* > > > + * Support for suspend and resume on s390 > > > + * > > > + * Copyright IBM Corp. 2009 > > > + * > > > + * Author(s): Hans-Joachim Picht > > > + * > > > + */ > > > + > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > > Empty functions do not need 1000 includes... > > Thanks for spotting this. I will remove these. > > > > +/* > > > + * save CPU registers before creating a hibernation image and > > > before > > > + * restoring the memory state from it > > > + */ > > > +void save_processor_state(void) > > > +{ > > > +} > > > + > > > +/* > > > + * restore the contents of CPU registers > > > + */ > > > +void restore_processor_state(void) > > > +{ > > > +} > > > > ...and explaining why the functions can be emmpty would be nice. > > I integrated the code for this in the assembly backend in the > swsusp_arch_suspend & swsusp_arch_resume functions. I guessed so. Maybe it is worth a comment? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html