From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 9C42D8CE for ; Fri, 24 Jul 2015 06:00:54 +0000 (UTC) Received: from muru.com (muru.com [72.249.23.125]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id F16698B for ; Fri, 24 Jul 2015 06:00:53 +0000 (UTC) Date: Thu, 23 Jul 2015 23:00:49 -0700 From: Tony Lindgren To: NeilBrown Message-ID: <20150724060049.GX10928@atomide.com> References: <20150723105726.GC30929@amd> <20150723121441.GB29747@amd> <20150723084251.54da2be0@gandalf.local.home> <20150723202901.GA30318@amd> <20150723203429.GA8588@amd> <20150724143427.5a045528@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150724143427.5a045528@noble> Cc: Pavel Machek , "ksummit-discuss@lists.linuxfoundation.org" , riverful.kim@samsung.com, kyungmin.park@samsung.com, John Stultz , Bjorn Andersson Subject: Re: [Ksummit-discuss] [CORE TOPIC] Mainline kernel on a cellphone List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , * NeilBrown [150723 21:37]: > On Thu, 23 Jul 2015 22:34:29 +0200 Pavel Machek wrote: > > > > and the big one... for Android people (not me): > > > > 6) do we need to use s2ram (and then pretend phone is not suspended) > > to save power on cellphones? If so, do we need new interface for > > applications to signal "I'd really like to run"? > > > > For the first half of this question, the answer is: > Probably not. runtime-pm should be able to put all devices to sleep, > and cgroup freezer should be able to freeze untrusted processes. Yes s2ram is just an additional tool. PM runtime alone can already provide a reasonable battery life for a phone as long as it's properly implemented and the hardware supports it. With reasonable battery life in this case I mean over 10 days in idle mode with system running and timers working. > But I suspect runtime-pm doesn't provide as much power saving as > system suspend, and using the cgroup freezer means lots of changes to > userspace. > So lots of work would be needed to meet this goal, if it is a > worthwhile goal. And with s2ram the difference is that then the system is not running and timers don't work so it really needs to be optional. > For the second half - it is really a user-space problem. User-space > decides when to enter suspend. > (or CONFIG_PM_WAKELOCKS can enable a kernel interface > via /sys/power/wake_lock). Yeah agreed. Regards, Tony