Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760624Ab0HEOXM (ORCPT ); Thu, 5 Aug 2010 10:23:12 -0400 Received: from smtp-out.google.com ([74.125.121.35]:3366 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760603Ab0HEOXK (ORCPT ); Thu, 5 Aug 2010 10:23:10 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:date:message-id:subject:from:to: cc:content-type:x-system-of-record; b=PsJnY6oSsqyMO+27lSeDdOM2VHCTdz0eRjR1l7Iud3Di3R18UI5UP3mM58yDYdhWE K/qAT3aGis8oObYJr+2Jg== MIME-Version: 1.0 In-Reply-To: <20100805141620.GA21459@srcf.ucam.org> References: <20100804185520.GA2417@srcf.ucam.org> <201008042251.08266.rjw@sisk.pl> <20100804205654.GA4986@srcf.ucam.org> <20100804231003.GL24163@linux.vnet.ibm.com> <20100805134741.GC20565@srcf.ucam.org> <20100805141620.GA21459@srcf.ucam.org> Date: Thu, 5 Aug 2010 07:23:04 -0700 Message-ID: Subject: Re: Attempted summary of suspend-blockers LKML thread From: Brian Swetland To: Matthew Garrett Cc: david@lang.hm, "Paul E. McKenney" , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , "Rafael J. Wysocki" , Arjan van de Ven , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, florian@mickler.org, stern@rowland.harvard.edu, peterz@infradead.org, tglx@linutronix.de, alan@lxorguk.ukuu.org.uk Content-Type: text/plain; charset=UTF-8 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1178 Lines: 25 On Thu, Aug 5, 2010 at 7:16 AM, Matthew Garrett wrote: > On Thu, Aug 05, 2010 at 07:07:06AM -0700, david@lang.hm wrote: >> On Thu, 5 Aug 2010, Matthew Garrett wrote: >>> The decision on whether or not to go to sleep isn't the difficult bit of >>> this problem space. >> >> but isn't that all that wakelocks do? affect the decision on whether or >> not to go to sleep. > > You could think of them that way, but it's not the useful aspect of them > - that much could be implemented entirely in userspace. Wakelocks > provide a mechanism for userspace to ensure that it's handled all > received events before a system suspend takes place. For userspace or the kernel -- some events may not require userspace intervention, but do require the kernel to stay awake long enough to finish chewing on them. Say perhaps a wifi irq comes in, the wifi driver/stack needs to process some beacon packets or whatnot. Brian -- 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/