From: Oliver Neukum 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 Message-ID: <200906080002.54914.oliver@neukum.org> References: <200906072347.00580.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: 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 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: "Rafael J. Wysocki" Cc: Alan Stern , pm list , ACPI Devel Maling List , LKML , Magnus Damm 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. =A0Update the run-tim= e PM > flags in the + * device object to reflect the current status of the d= evice. > + */ > +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-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html