Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756702AbZFHPai (ORCPT ); Mon, 8 Jun 2009 11:30:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756246AbZFHPaW (ORCPT ); Mon, 8 Jun 2009 11:30:22 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60894 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754758AbZFHPaU (ORCPT ); Mon, 8 Jun 2009 11:30:20 -0400 Date: Mon, 8 Jun 2009 08:44:51 +0200 From: Pavel Machek To: Martin Schwidefsky Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-pm@lists.linux-foundation.org, Heiko Carstens , Hans-Joachim Picht Subject: Re: [patch 05/38] s390: hibernation support for s390 Message-ID: <20090608064451.GD1444@ucw.cz> References: <20090604161847.513682672@de.ibm.com> <20090604161900.659762303@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090604161900.659762303@de.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1717 Lines: 63 On Thu 2009-06-04 18:18:52, Martin Schwidefsky wrote: > From: Hans-Joachim Picht > > This patch introduces the hibernation backend support to the > s390 architecture. Now it is possible to suspend a mainframe Linux > guest using the following command: > > echo disk > /sys/power/state Should this one be last in series? Otherwise no obvious problems... > 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... > +/* > + * 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. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/