From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759093Ab0EZKZq (ORCPT ); Wed, 26 May 2010 06:25:46 -0400 Received: from mail-pz0-f176.google.com ([209.85.222.176]:54459 "EHLO mail-pz0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757208Ab0EZKZp convert rfc822-to-8bit (ORCPT ); Wed, 26 May 2010 06:25:45 -0400 MIME-Version: 1.0 In-Reply-To: <1274868593.5882.5185.camel@twins> References: <1274482015-30899-1-git-send-email-arve@android.com> <201005242049.18920.rjw@sisk.pl> <87wrusvrqe.fsf@deeprootsystems.com> <201005250138.16293.rjw@sisk.pl> <1274863655.5882.4875.camel@twins> <1274867106.5882.5090.camel@twins> <1274868593.5882.5185.camel@twins> Date: Wed, 26 May 2010 03:25:44 -0700 Message-ID: Subject: Re: [PATCH 0/8] Suspend block api (version 8) From: =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5g?= To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Kevin Hilman , felipe.balbi@nokia.com, Linux PM , LKML , Linux OMAP Mailing List , Tony Lindgren , Paul Walmsley Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2010/5/26 Peter Zijlstra : > On Wed, 2010-05-26 at 03:06 -0700, Arve Hjønnevåg wrote: > >> I was not talking about our user-space code. Suspend has to be called >> by a running thread, so at least one runqueue is not empty. > > But why would you need to suspend if the machine is fully idle? > I have never seen a system that is fully idle for hours or even minutes. > Is it because you're using broken hardware that has lower power > consumption in suspend state as in idle? > Initially, yes, but for shipping android phones, no. > Couldn't you make the runtime-pm smarter and utilize the suspend states? > I don't think runtime-pm is relevant here. We don't use suspend to power down devices that are not in use, we use suspend to enter system power states that we cannot enter from idle, and on systems where the same power state can be used from idle and suspend, we use suspend so we can stay in the low power state for minutes to hours instead of milliseconds to seconds. -- Arve Hjønnevåg