[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1274878665.27810.354.camel@twins>
Date: Wed, 26 May 2010 14:57:45 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Matthew Garrett <mjg59@...f.ucam.org>
Cc: Arve Hjønnevåg <arve@...roid.com>,
"Rafael J. Wysocki" <rjw@...k.pl>,
Alan Stern <stern@...land.harvard.edu>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Linux-pm mailing list <linux-pm@...ts.linux-foundation.org>,
Kernel development list <linux-kernel@...r.kernel.org>,
Len Brown <len.brown@...el.com>, Pavel Machek <pavel@....cz>,
Randy Dunlap <rdunlap@...otime.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Andi Kleen <ak@...ux.intel.com>,
Cornelia Huck <cornelia.huck@...ibm.com>,
Tejun Heo <tj@...nel.org>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Nigel Cunningham <nigel@...onice.net>,
Ming Lei <tom.leiming@...il.com>,
Wu Fengguang <fengguang.wu@...el.com>,
Maxim Levitsky <maximlevitsky@...il.com>,
linux-doc@...r.kernel.org, Greg KH <gregkh@...e.de>, tytso@....edu,
James Bottomley <James.Bottomley@...e.de>
Subject: Re: [PATCH 1/8] PM: Opportunistic suspend support.
On Wed, 2010-05-26 at 13:49 +0100, Matthew Garrett wrote:
Lack of quoting makes it hard to see what your 'this' refers to. I'll
assume its the userspace suspend manager.
> While this approach could be made to work, it's ugly in other ways.
> After wakeup, userspace has to pause for a while before it can trigger
> another sleep in order to give all the apps an opportunity to check for
> wakeup events and block suspend if they wish to. That's additional
> runtime that doesn't exist in the kernel-mediated case.
I fail to see why. In both cases the woken userspace will contact a
central governing task, either the kernel or the userspace suspend
manager, and inform it there is work to be done, and please don't
suspend now.
Also, since we did get woken, there clearly is work to do and we should
only try suspending again once someone did inform us of completing it.
In both cases, once the event is fully handled, will there be
communication of this fact and suspend can be attempted.
I don't see a reason to 'wait' for anything -- except maybe speculate on
the avgerage wakeup rate and decide not to suspend quite yet.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists