Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757385AbZFHQaU (ORCPT ); Mon, 8 Jun 2009 12:30:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757373AbZFHQ3y (ORCPT ); Mon, 8 Jun 2009 12:29:54 -0400 Received: from qw-out-2122.google.com ([74.125.92.24]:47784 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757331AbZFHQ3w (ORCPT ); Mon, 8 Jun 2009 12:29:52 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=M8zitzc4WQtCc1LklidU3WMy7eVTrg1h1LAl20kwSSB7XftcbdYWdZvWrTwqNxPXmR v6bLzomsGONV9AzTnEwrs+9fOWHZCCC56xASJO3NggrL87WA5BZtu/qMm/rQstJ85jNk 3mWK4kgPBFt0Mx9CO1OU4gSLrkOj7EWUG9aMQ= MIME-Version: 1.0 In-Reply-To: <20090608150603.GB20905@elte.hu> References: <20090608131159.GA15100@srcf.ucam.org> <20090608132235.GC13214@elte.hu> <200906081539.20459.oliver@neukum.org> <20090608142154.GD14234@elte.hu> <20090608143023.GA16752@srcf.ucam.org> <20090608150603.GB20905@elte.hu> From: Ray Lee Date: Mon, 8 Jun 2009 09:29:34 -0700 X-Google-Sender-Auth: 58a8e44af0e18eef Message-ID: <2c0942db0906080929r31e39fe5w673ed877bb5f4966@mail.gmail.com> Subject: Re: Run-time PM idea (was: Re: [linux-pm] [RFC][PATCH 0/2] PM: Rearrange core suspend code) To: Ingo Molnar Cc: Matthew Garrett , Oliver Neukum , "Rafael J. Wysocki" , Alan Stern , pm list , ACPI Devel Maling List , LKML , Magnus Damm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 23 On Mon, Jun 8, 2009 at 8:06 AM, Ingo Molnar wrote: > > * Matthew Garrett wrote: >> I'd like the kernel to expose this functionality but leave the >> policy decisions to userland. > > The thing is, suspending something that is being used and relied on > by an app is a _bug_. This is rather fundamental: hardware state and > usage tracking is _NOT POLICY_. Yes. But, actual example time: what about the case where completely turning off a laptop's DVD drive saves extra power, but then also turns off kernel and userspace notification of a disc being inserted? One of the Other OS's handles this by having a popup when the battery gets low, asking if it's okay to turn the drive off. This is part of what Matthew is talking about here. -- 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/