From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH 1 of 3] fix S3 suspend error Date: Mon, 23 Feb 2009 04:38:55 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Guanqun Lu , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 23/02/2009 07:27, "Guanqun Lu" wrote: > fix S3 suspend error. > > invoke ioapic_pm_state_alloc() eariler, > thus avoiding check_lock() BUG_ON() in spin_lock(). > > Signed-off-by: Guanqun Lu This one I think is a good idea anyway. The other two -- I wonder why we do device suspend/resume with IRQs disabled? As far as I can tell Linux does not do that. So would it be cleaner to move the device suspend/resume hooks outside the IRQs-disabled region? -- Keir