From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH] pm_ops: add irq enable/disable hooks Date: Thu, 12 Apr 2007 07:40:33 +1000 Message-ID: <1176327633.8061.102.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Alan Stern Cc: linux-pm , Johannes Berg List-Id: linux-pm@vger.kernel.org > Have you guys considered using a notifier chain for this? The platform = > code could register itself on the chain at boot time. When suspending yo= u = > send out notifications just before and just after disabling interrupts, = > and inversely on resume. Except that in the case of the decrementer, I really need to be just around the actual switching of irqs off ... Ben.