From: Oliver Neukum Subject: Re: [linux-pm] Run-time PM idea (was: Re: [RFC][PATCH 0/2] PM: Rearrange core suspend code) Date: Mon, 8 Jun 2009 00:05:23 +0200 Message-ID: <200906080005.23304.oliver@neukum.org> References: <200906072347.00580.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out003.kontent.com ([81.88.40.217]:36328 "EHLO smtp-out003.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753571AbZFGWEj (ORCPT ); Sun, 7 Jun 2009 18:04:39 -0400 In-Reply-To: <200906072347.00580.rjw@sisk.pl> Content-Disposition: inline Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-pm@lists.linux-foundation.org Cc: "Rafael J. Wysocki" , Alan Stern , ACPI Devel Maling List , LKML Am Sonntag, 7. Juni 2009 23:46:59 schrieb Rafael J. Wysocki: > It may be necessary to resume a device synchronously, but I'm still > thinking how to implement that. This will absolutely be the default. You resume a device because you want it to do something now. It seems to me that you making your problem worse by using a spinlock as a lock. A mutex would make it easier. Regards Oliver