From: Andrew Morton <akpm@linux-foundation.org>
To: "Hunter, Jon" <jon-hunter@ti.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Subject: Re: [RFC] Dynamic Tick and Deferrable Timer Support
Date: Wed, 14 Jan 2009 22:16:24 -0800 [thread overview]
Message-ID: <20090114221624.76ee8aa4.akpm@linux-foundation.org> (raw)
In-Reply-To: <CF7665F795A4BE438425FE728CEACFA302F2436B52@dlee01.ent.ti.com>
On Wed, 14 Jan 2009 14:03:09 -0600 "Hunter, Jon" <jon-hunter@ti.com> wrote:
> Hello All,
>
> I have been working to maximise the kernel sleep time on an embedded device by utilising the dynamic tick and deferrable timer features.
>
> During the course of this work I found that although timers were configured as deferrable, only timers for time interval tv1 were actually being deferred. Reviewing the deferrable timer patch [1], it does appear that the code is written to only defer timers for interval tv1. Therefore, I wanted to ask if this is intentional or not?
>
> I have applied the below patch to defer all deferrable timers regardless of interval and so far it is working on the embedded device. I wanted to share this in case this could be something that could be applied to the mainline.
>
> Please excuse any foolish mistakes I may have made here as this is my first post to your mailing list. Any feedback you could offer would be appreciated.
>
> Cheers
> Jon
>
> [1] Deferrable timer patch: http://marc.info/?l=linux-kernel&m=117512286417320&w=2
>
>
> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
> ---
> kernel/timer.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/kernel/timer.c b/kernel/timer.c
> index dee3f64..76a3ac6 100644
> --- a/kernel/timer.c
> +++ b/kernel/timer.c
> @@ -930,6 +930,9 @@ cascade:
> index = slot = timer_jiffies & TVN_MASK;
> do {
> list_for_each_entry(nte, varp->vec + slot, entry) {
> + if (tbase_get_deferrable(nte->base))
> + continue;
> +
> found = 1;
> if (time_before(nte->expires, expires))
> expires = nte->expires;
Venki, could you please take a look?
next prev parent reply other threads:[~2009-01-15 6:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-14 20:03 [RFC] Dynamic Tick and Deferrable Timer Support Hunter, Jon
2009-01-15 6:16 ` Andrew Morton [this message]
2009-01-26 18:23 ` Hunter, Jon
2009-01-26 19:48 ` Pallipadi, Venkatesh
2009-01-26 21:41 ` Hunter, Jon
2009-01-27 18:36 ` Pallipadi, Venkatesh
2009-01-27 18:45 ` Pallipadi, Venkatesh
2009-01-29 16:29 ` Jon Hunter
2009-01-29 17:36 ` john stultz
2009-01-30 19:04 ` Jon Hunter
2009-01-30 20:29 ` john stultz
2009-02-07 9:20 ` Pavel Machek
2009-02-07 9:20 ` Pavel Machek
2009-02-09 19:10 ` John Stultz
2009-04-08 19:20 ` Hunter, Jon
2009-04-08 22:52 ` Andrew Morton
2009-04-09 15:02 ` Jon Hunter
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=20090114221624.76ee8aa4.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=jon-hunter@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=venkatesh.pallipadi@intel.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