From: "Bedia, Vaibhav" <vaibhav.bedia@ti.com>
To: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Russell King <linux@arm.linux.org.uk>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>,
Colin Cross <ccross@android.com>, Olof Johansson <olof@lixom.net>,
Stephen Warren <swarren@nvidia.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: RE: [PATCH v1 3/3] ARM: tegra: cpuidle driver for tegra
Date: Fri, 27 Jan 2012 06:59:03 +0000 [thread overview]
Message-ID: <B5906170F1614E41A8A28DE3B8D1214331791EA6@DBDE01.ent.ti.com> (raw)
In-Reply-To: <1327594923-21822-4-git-send-email-pdeschrijver@nvidia.com>
On Thu, Jan 26, 2012 at 21:52:03, Peter De Schrijver wrote:
[...]
> +static int tegra_idle_enter_lp3(struct cpuidle_device *dev,
> + struct cpuidle_driver *drv, int index)
> +{
> + ktime_t enter, exit;
> + s64 us;
> +
> + local_irq_disable();
> + local_fiq_disable();
> +
> + enter = ktime_get();
> +
> + tegra_cpu_wfi();
> +
> + exit = ktime_sub(ktime_get(), enter);
> + us = ktime_to_us(exit);
> +
> + local_fiq_enable();
> + local_irq_enable();
> +
> + dev->last_residency = us;
> +
> + return index;
> +}
You can probably drop local_irq_disable() and local_irq_enable().
next prev parent reply other threads:[~2012-01-27 6:59 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 16:22 [PATCH v1 0/3] Add support for LP3 Peter De Schrijver
2012-01-26 16:22 ` [PATCH v1 1/3] ARM: tegra: definitions for flow controller Peter De Schrijver
2012-01-27 2:17 ` Olof Johansson
2012-01-27 8:15 ` Olof Johansson
2012-01-26 16:22 ` [PATCH v1 2/3] ARM: tegra: assembler code for LP3 Peter De Schrijver
2012-01-26 16:22 ` [PATCH v1 3/3] ARM: tegra: cpuidle driver for tegra Peter De Schrijver
2012-01-26 19:11 ` Mark Brown
2012-01-27 9:09 ` Bedia, Vaibhav
2012-01-27 6:59 ` Bedia, Vaibhav [this message]
2012-01-27 7:10 ` Colin Cross
2012-01-27 8:39 ` Bedia, Vaibhav
2012-02-01 7:35 ` Olof Johansson
2012-01-26 18:33 ` [PATCH v1 0/3] Add support for LP3 Stephen Warren
2012-01-26 21:49 ` Colin Cross
2012-02-01 7:35 ` Olof Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B5906170F1614E41A8A28DE3B8D1214331791EA6@DBDE01.ent.ti.com \
--to=vaibhav.bedia@ti.com \
--cc=ccross@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=olof@lixom.net \
--cc=pdeschrijver@nvidia.com \
--cc=swarren@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).