Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp556047ybi; Tue, 16 Jul 2019 01:40:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLBDbn5vlT+k2xWZlubElf0oepQjnv1SUT65VUFrkMVquXj+6YBshGZAONYVW3HqJmgjEG X-Received: by 2002:a17:902:7781:: with SMTP id o1mr33862529pll.205.1563266434180; Tue, 16 Jul 2019 01:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563266434; cv=none; d=google.com; s=arc-20160816; b=gRseoYs+yiTOZlZHLqTD1TOaj9OzhO2s/Lk0Q2B3sYiBMpihTHnXmFLTpPlhWnvbQG VFD7jjhYnBJ7Ym/p3kQ+0lqzcBAPczS+pSwB+VFJOYJtGB9q0sGh87MtbPvs4yP52Yf6 O517VrslHc7lshHm9x2x2zZJOX/xXJkQ4W1Ysjbaa69ESx67Ltfht7nu7Tu64NYIMXvY lw1TUoD8kFkqxpp2YmUnvSSk7Hyxk0aOD/jYRNi1XVuwsx97PhK4mdEvCO+Y4QC5ktui uuMWOhB1SHnvU0KxL2B8dX44iMQmcDnvOUpsBAP87273jXtaa4CV4RC4Xx0N57NX/yi2 TEnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zNrpUYJbrO02Ar29pvu1k9EQQNOuw3bDpHt0wqDUEBY=; b=V+ZZVwIkjmD8l7karlhghcFxgIwEMf1fGcZA94khMkD4PadY/E9v7OqxPQAhsGivXF Gw6s3Ve5HdAZyntiXLAcVW8fHPSlTzRINqgMw2JmZ/owrpoRK5ZUjkDGWR0sqp3Bn9l8 0XaZC/aG0VA3bGmmf8hK3gGPAh9IgqVwPmEq8Jg1ZSEUCn//H8cOiQUBmJZJYSy/jRaD wsIdRKuo5AWRk5CIOvI51UgIcsHkmam8LxcvMsl/PYk1yPKBmoUd904U2iMU+LtBhyGC HPvJAhyRR4vIUq8H3iLaOY1NfZyGMq8tat2Ls7IXoC2TnQbYtgB752J7DAXetiZj3nIg Ni/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ignF/XJS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si14846787pgq.459.2019.07.16.01.40.18; Tue, 16 Jul 2019 01:40:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ignF/XJS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731517AbfGPIjl (ORCPT + 99 others); Tue, 16 Jul 2019 04:39:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:54324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727105AbfGPIjl (ORCPT ); Tue, 16 Jul 2019 04:39:41 -0400 Received: from localhost (unknown [113.157.217.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 39F2321721; Tue, 16 Jul 2019 08:39:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563266380; bh=M/lqVVPiWZwgAYL4LGiADH8CqNdvW8sCBgca7ffnYDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ignF/XJSPof7phYqp5604uR5utOVu63j0eZlOTnf2OaptycLIcZ/w1bKjQnfvWS+S fD7YgyS78PNy2HYjl3JkK/oC3kGS/toRShRF9BMhp/Gmrt/hGIvSgzu1t+fxeJKKdr pXKcybiEIp6m+eJDgLi4xBTgBvti7ClNjZRNQ2vs= Date: Tue, 16 Jul 2019 17:39:26 +0900 From: Greg Kroah-Hartman To: "Rafael J. Wysocki" Cc: Tri Vo , "Rafael J. Wysocki" , Viresh Kumar , Hridya Valsaraju , sspatil@google.com, kaleshsingh@google.com, Linux Kernel Mailing List , Linux PM , "Cc: Android Kernel" Subject: Re: [PATCH v4] PM / wakeup: show wakeup sources stats in sysfs Message-ID: <20190716083926.GA2505@kroah.com> References: <20190715203651.GA7513@kroah.com> <20190715214348.81865-1-trong@android.com> <20190716021102.GA8310@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 16, 2019 at 10:30:48AM +0200, Rafael J. Wysocki wrote: > On Tue, Jul 16, 2019 at 4:13 AM Greg Kroah-Hartman > wrote: > > > > On Mon, Jul 15, 2019 at 11:48:27PM +0200, Rafael J. Wysocki wrote: > > > On Mon, Jul 15, 2019 at 11:44 PM Tri Vo wrote: > > > > > > > > Userspace can use wakeup_sources debugfs node to plot history of suspend > > > > blocking wakeup sources over device's boot cycle. This information can > > > > then be used (1) for power-specific bug reporting and (2) towards > > > > attributing battery consumption to specific processes over a period of > > > > time. > > > > > > > > However, debugfs doesn't have stable ABI. For this reason, create a > > > > 'struct device' to expose wakeup sources statistics in sysfs under > > > > /sys/class/wakeup//. > > > > > > > > Introduce CONFIG_PM_SLEEP_STATS that enables/disables showing wakeup > > > > source statistics in sysfs. > > > > > > I'm not sure if this is really needed, but I'll let Greg decide. > > > > You are right. Having zillions of config options is a pain, who is > > going to turn this off? > > > > But we can always remove the option before 5.4-rc1, so I'll take this > > as-is for now :) > > > > > Apart from this > > > > > > Reviewed-by: Rafael J. Wysocki > > > > thanks for the review! I'll wait for 5.3-rc1 to come out before adding > > this to my tree. > > So it occurred to me that maybe it's better if I apply it? After all, > this is PM material. :-) Heh, true, feel free to add: Signed-off-by: Greg Kroah-Hartman to the patch then. > It is fine by me either way, but then I'm not sure if you want to get > future bug reports related to this if any ... I get enough emails as it is, no need to ask for more :) thanks, greg k-h