From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758604Ab0EBUK4 (ORCPT ); Sun, 2 May 2010 16:10:56 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:36135 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752853Ab0EBUKy (ORCPT ); Sun, 2 May 2010 16:10:54 -0400 From: "Rafael J. Wysocki" To: Pavel Machek Subject: Re: [PATCH 1/8] PM: Add suspend block api. Date: Sun, 2 May 2010 22:10:53 +0200 User-Agent: KMail/1.12.4 (Linux/2.6.34-rc6-rjw; KDE/4.3.5; x86_64; ; ) Cc: "Arve Hj??nnev??g" , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Alan Stern , Tejun Heo , Oleg Nesterov , Len Brown , Randy Dunlap , Jesse Barnes , Magnus Damm , Nigel Cunningham , Cornelia Huck , Ming Lei , Wu Fengguang , Andrew Morton , Maxim Levitsky , linux-doc@vger.kernel.org References: <1272667021-21312-1-git-send-email-arve@android.com> <1272667021-21312-2-git-send-email-arve@android.com> <20100502065635.GA1790@ucw.cz> In-Reply-To: <20100502065635.GA1790@ucw.cz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201005022210.54018.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday 02 May 2010, Pavel Machek wrote: > Hi! > > > Adds /sys/power/policy that selects the behaviour of /sys/power/state. > > After setting the policy to opportunistic, writes to /sys/power/state > > become non-blocking requests that specify which suspend state to enter > > when no suspend blockers are active. A special state, "on", stops the > > process by activating the "main" suspend blocker. > > As I explained before (and got no reply), the proposed interface is > ugly. It uses one sysfs file to change semantics of another one. In fact this behavior was discussed at the LF Collab Summit and no one involved had any problem with that. > > Signed-off-by: Arve Hj??nnev??g > > NAK. Ignored. Thanks, Rafael