kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Enabling tickless kernel feature in ARM
Date: Tue, 26 Apr 2011 23:35:13 +0700	[thread overview]
Message-ID: <BANLkTinyb+_wpPWVgtdRwYT8nr3W7fM+ng@mail.gmail.com> (raw)
In-Reply-To: <BANLkTim7vocES5ret7cUd9cdsnDbG71x=g@mail.gmail.com>

Dear Vikram...

On Tue, Apr 26, 2011 at 20:55, Vikram Narayanan <vikram186@gmail.com> wrote:
> Hi,
>
> I want to enable the dynamic tick aka tickless kernel feature for the
> BSP which I am developing. What are all the architecture dependent
> changes that needs to be done for implementing it.

To the best I know:

essentially, to achieve tickless ( also know as "no hz"), you need to
reprogram your timer chip, so it just "shoot" whenever needed, not
periodically. And sometimes, you need to round them up, i.e there are
timers which expires in the next 10 ms, 11 ms and 15 ms...so
effectively, better to make them expire at 15 ms if possible.

so, you need a way to detect the timer expiration (possibly by walking
through active timer list) and decide when the timer chip needs to
shoot interrupt. The rest of the change...of course...still needed
further thinking....

NB: AFAIK In x86, HPET is a prerequisite to achieve tickless... maybe
because reprogramming HPET is somewhat way faster than regular PIT

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

  parent reply	other threads:[~2011-04-26 16:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 13:55 Enabling tickless kernel feature in ARM Vikram Narayanan
2011-04-26 16:34 ` Haojian Zhuang
2011-04-27  3:04   ` Vikram Narayanan
2011-04-27  6:29     ` Haojian Zhuang
2011-04-26 16:35 ` Mulyadi Santosa [this message]
2011-04-27  3:09   ` Vikram Narayanan
2011-04-27  4:29     ` Mulyadi Santosa
2011-04-27 13:49       ` Vikram Narayanan
2011-04-27 15:37         ` Mulyadi Santosa
2011-04-28 13:18           ` Vikram Narayanan
2011-04-28 15:08             ` Mulyadi Santosa
2011-04-28 16:20               ` Vikram Narayanan

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=BANLkTinyb+_wpPWVgtdRwYT8nr3W7fM+ng@mail.gmail.com \
    --to=mulyadi.santosa@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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).