From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753815AbZB1REU (ORCPT ); Sat, 28 Feb 2009 12:04:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752579AbZB1REJ (ORCPT ); Sat, 28 Feb 2009 12:04:09 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:46578 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbZB1REH (ORCPT ); Sat, 28 Feb 2009 12:04:07 -0500 Date: Sat, 28 Feb 2009 09:03:20 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: "Rafael J. Wysocki" cc: =?ISO-8859-15?Q?Arve_Hj=F8nnev=E5g?= , Alan Stern , Jeremy Fitzhardinge , LKML , Jesse Barnes , Thomas Gleixner , "Eric W. Biederman" , Ingo Molnar , pm list Subject: Re: [linux-pm] [RFC][PATCH 2/2] PM: Rework handling of interrupts during suspend-resume In-Reply-To: <200902281106.41793.rjw@sisk.pl> Message-ID: References: <200902281106.41793.rjw@sisk.pl> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Feb 2009, Rafael J. Wysocki wrote: > > Still, if Linus agrees, I can put the loop suggested by him directly into > sysdev_suspend(). Linus? I don't much care - it's going to be a no-op on architectures that don't have that kind of "turn an interrupt into a wakeup event" capability. So it's not going to break for things like x86, and it's not like going over the irq list one more time is going to be so expensive as to be noticeable, even if that architecture doesn't ever get any advantage of it. However - my main worry is that we will notice that different architectures (and possibly even different platforms _within_ the same architecture - depending on which kind of interrupt/pm controller they have) will want to do different things, and actually do something to the interrupt controller itself too at that point. But we can certainly try starting out with just the generic "if a wakeup interrupt is pending, sysdev_suspend() returns an error immediately". Linus