From patchwork Tue Jul 18 17:26:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Salyzyn X-Patchwork-Id: 9849233 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E8D3160392 for ; Tue, 18 Jul 2017 17:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD31F285C2 for ; Tue, 18 Jul 2017 17:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2214285CD; Tue, 18 Jul 2017 17:26:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 65BDD285C2 for ; Tue, 18 Jul 2017 17:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbdGRR02 (ORCPT ); Tue, 18 Jul 2017 13:26:28 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:32778 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751547AbdGRR00 (ORCPT ); Tue, 18 Jul 2017 13:26:26 -0400 Received: by mail-pg0-f44.google.com with SMTP id k14so16323068pgr.0 for ; Tue, 18 Jul 2017 10:26:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KpIqzfkqOFKmdN4an6TaKl3UsEEDhcqNmVBvz4dULFE=; b=sjmJZpHJJr+LGWm8vvin1mEUDr2Kwl/pJyQRTgwko8/JMiOgpkWonhp4308YOdxY6n r6UsGNKrU9Mw+GqYRrpUFQ4s0QRjr+zASYoG8ovGFPSdeT07t63d/jolodHavpZHIG/b Ruv7P37B6kScTrYBQOQWJ/Wj/nSffjQYxS81pRexZN5m3aLmtLeg6kcZqQc+qrMVE+r3 McfWxnGAZ/c2HyGkWhK7dIXopAN8qog1MYerT0PVLSnqEm/yVMw8XUXNyqe4ZxCSc3m1 Vath0PuAfAnZPSv1WANANMIyyQe6nX0Kn9Rfw69GwqMQgMir2hH9+QwNzEgrtoDXR3M5 Hlvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KpIqzfkqOFKmdN4an6TaKl3UsEEDhcqNmVBvz4dULFE=; b=eBBO39BqNJrzE5V2Fx8VC2qKQpkvIXWAB4QzhzrtmDqPdBHAw8vnJrYEnGxK3s2Gr7 doWtwCcONMK1ptOP78dY4PehgAD2cZtW4JgHmL84rVtyBmsClgckBfpDzPDJfCrl4ASr NjRSTvjLiQmZ38bJCfo5JG2u8NEcspj3rF07diEsUYHmB0z+IZkWYhQ+IfDIlbfIdzVQ 9wkMoC/T+0s2vYeInhcvp3c9PhBiaPRT2XbsPfHf4vd+T4j2IhOwpGgUF91m01PiQdGF ZCHH6/aiFPbIAA1y7WB39JQONbXs+aPpXWAMmF9BxmK0YXrRjNCbd9HU3nEafl6ZcKum 6sVA== X-Gm-Message-State: AIVw113ejToHv8GgpsGdqnzTGJw2sLgpkBV1H9ebrecohxzOH4Beo68B cRwYgwg8Zk2Nwidn X-Received: by 10.99.106.66 with SMTP id f63mr2791603pgc.150.1500398785502; Tue, 18 Jul 2017 10:26:25 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([100.98.120.17]) by smtp.gmail.com with ESMTPSA id q3sm7208193pfk.8.2017.07.18.10.26.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 10:26:25 -0700 (PDT) From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, linux-pm@vger.kernel.org, a.zummo@towertech.it, alexandre.belloni@free-electrons.com, linux-rtc@vger.kernel.org, Mark Salyzyn Subject: [PATCH 4/4] PM: Print wall time at hibernate entry and exit Date: Tue, 18 Jul 2017 10:26:16 -0700 Message-Id: <20170718172617.114825-1-salyzyn@android.com> X-Mailer: git-send-email 2.13.2.932.g7449e964c-goog Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Permits power state and battery life diagnosis. Feature activated by CONFIG_RTC_SHOW_TIME. Signed-off-by: Mark Salyzyn --- kernel/power/hibernate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index e1914c7b85b1..0b5460f9189b 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -32,11 +32,11 @@ #include #include #include +#include #include #include "power.h" - static int nocompress; static int noresume; static int nohibernate; @@ -342,6 +342,7 @@ int hibernation_snapshot(int platform_mode) pm_message_t msg; int error; + rtc_show_time("PM: hibernation entry"); pm_suspend_clear_flags(); error = platform_begin(platform_mode); if (error) @@ -409,6 +410,7 @@ int hibernation_snapshot(int platform_mode) thaw_kernel_threads(); Cleanup: swsusp_free(); + rtc_show_time("PM: hibernation exit"); goto Close; }