Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756654AbZFGWEr (ORCPT ); Sun, 7 Jun 2009 18:04:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755645AbZFGWEj (ORCPT ); Sun, 7 Jun 2009 18:04:39 -0400 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 From: Oliver Neukum To: linux-pm@lists.linux-foundation.org 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 User-Agent: KMail/1.10.3 (Linux/2.6.27.21-0.1-default; KDE/4.1.3; x86_64; ; ) Cc: "Rafael J. Wysocki" , Alan Stern , ACPI Devel Maling List , LKML References: <200906072347.00580.rjw@sisk.pl> In-Reply-To: <200906072347.00580.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906080005.23304.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 640 Lines: 16 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 -- 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/