From patchwork Fri Dec 10 19:51:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 399372 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBAJs41B011820 for ; Fri, 10 Dec 2010 19:54:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756932Ab0LJTx3 (ORCPT ); Fri, 10 Dec 2010 14:53:29 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:43049 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756066Ab0LJTx2 (ORCPT ); Fri, 10 Dec 2010 14:53:28 -0500 Received: by wwa36 with SMTP id 36so4109995wwa.1 for ; Fri, 10 Dec 2010 11:53:26 -0800 (PST) Received: by 10.216.173.4 with SMTP id u4mr13631wel.87.1292010806549; Fri, 10 Dec 2010 11:53:26 -0800 (PST) Received: from localhost.localdomain (147.70-245-81.adsl-dyn.isp.belgacom.be [81.245.70.147]) by mx.google.com with ESMTPS id m10sm2350391wbc.10.2010.12.10.11.53.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 10 Dec 2010 11:53:25 -0800 (PST) From: jean.pihet@newoldbits.com To: Ingo Molnar Cc: Thomas Renninger , linux-pm@lists.linux-foundation.org, Arjan van de Ven , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Jean Pihet Subject: [PATCH 1/3] perf: add calls to suspend trace point Date: Fri, 10 Dec 2010 20:51:59 +0100 Message-Id: <1292010721-17426-2-git-send-email-j-pihet@ti.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1292010721-17426-1-git-send-email-j-pihet@ti.com> References: <1292010721-17426-1-git-send-email-j-pihet@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 10 Dec 2010 19:54:05 +0000 (UTC) diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c index ecf7705..0650596 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "power.h" @@ -164,7 +165,9 @@ static int suspend_enter(suspend_state_t state) error = sysdev_suspend(PMSG_SUSPEND); if (!error) { if (!suspend_test(TEST_CORE) && pm_check_wakeup_events()) { + trace_machine_suspend(state); error = suspend_ops->enter(state); + trace_machine_suspend(PWR_EVENT_EXIT); events_check_enabled = false; } sysdev_resume();