From patchwork Wed Oct 6 23:15:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Nanda X-Patchwork-Id: 237371 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 o96NFx1G015398 for ; Wed, 6 Oct 2010 23:15:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754218Ab0JFXP6 (ORCPT ); Wed, 6 Oct 2010 19:15:58 -0400 Received: from smtp-out.google.com ([216.239.44.51]:45115 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754183Ab0JFXP6 (ORCPT ); Wed, 6 Oct 2010 19:15:58 -0400 Received: from wpaz33.hot.corp.google.com (wpaz33.hot.corp.google.com [172.24.198.97]) by smtp-out.google.com with ESMTP id o96NFqtU007807; Wed, 6 Oct 2010 16:15:52 -0700 Received: from snanda.mtv.corp.google.com (snanda.mtv.corp.google.com [172.22.72.213]) by wpaz33.hot.corp.google.com with ESMTP id o96NFoYs023763; Wed, 6 Oct 2010 16:15:50 -0700 Received: by snanda.mtv.corp.google.com (Postfix, from userid 66203) id 544258E5EA; Wed, 6 Oct 2010 16:15:50 -0700 (PDT) From: Sameer Nanda To: lenb@kernel.org, stefan.bader@canonical.com, brad.figg@canonical.com, gregkh@suse.de, apw@canonical.com Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Sameer Nanda Subject: [PATCH] ACPI: Read TSC upon resume Date: Wed, 6 Oct 2010 16:15:19 -0700 Message-Id: <1286406919-6236-1-git-send-email-snanda@chromium.org> X-Mailer: git-send-email 1.7.1 X-System-Of-Record: true Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@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]); Wed, 06 Oct 2010 23:15:59 +0000 (UTC) diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index c0fed2e..f0588fa 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -214,6 +214,7 @@ static int acpi_suspend_enter(suspend_state_t pm_state) acpi_status status = AE_OK; unsigned long flags = 0; u32 acpi_state = acpi_target_sleep_state; + u64 tsc; ACPI_FLUSH_CPU_CACHE(); @@ -235,6 +236,9 @@ static int acpi_suspend_enter(suspend_state_t pm_state) case ACPI_STATE_S3: do_suspend_lowlevel(); + rdtscll(tsc); + printk(KERN_INFO "TSC at resume: %llu\n", + (unsigned long long)tsc); break; }