Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756489AbZFGWCV (ORCPT ); Sun, 7 Jun 2009 18:02:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754609AbZFGWCM (ORCPT ); Sun, 7 Jun 2009 18:02:12 -0400 Received: from smtp-out002.kontent.com ([81.88.40.216]:47750 "EHLO smtp-out002.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754206AbZFGWCL convert rfc822-to-8bit (ORCPT ); Sun, 7 Jun 2009 18:02:11 -0400 From: Oliver Neukum To: "Rafael J. Wysocki" Subject: Re: Run-time PM idea (was: Re: [linux-pm] [RFC][PATCH 0/2] PM: Rearrange core suspend code) Date: Mon, 8 Jun 2009 00:02:54 +0200 User-Agent: KMail/1.10.3 (Linux/2.6.27.21-0.1-default; KDE/4.1.3; x86_64; ; ) Cc: Alan Stern , pm list , ACPI Devel Maling List , LKML , Magnus Damm 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: 8BIT Content-Disposition: inline Message-Id: <200906080002.54914.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 737 Lines: 19 Am Sonntag, 7. Juni 2009 23:46:59 schrieb Rafael J. Wysocki: > + * Use @work to get the device object the resume has been scheduled for, > + * check if the device is really suspended and run the ->autoresume() > callback + * from the device's bus type driver. ?Update the run-time PM > flags in the + * device object to reflect the current status of the device. > + */ > +static void pm_autoresume(struct work_struct *work) > +{ Why do you pass it a struct work pointer? 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/