From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: Tickless/dyntick kernel, highres timer and general time crapectomy
Date: Thu, 07 Jun 2007 17:43:17 +0400 [thread overview]
Message-ID: <46680B75.5040809@ru.mvista.com> (raw)
In-Reply-To: <cda58cb80706070611t3083f026p769e3e1beee1f11e@mail.gmail.com>
Hello.
Franck Bui-Huu wrote:
> Actually I'm wondering if we shouldn't create a new file
> "arch/mips/kernel/time2.c" which will be a complete rewrite of the
> old one (interrupt handler, function pointers, clocksource,
> clockevent). This file would be the future replacement of the old
> time.c. This new file would be used only if the board have been
> updated accordingly. That may help to migrate...
We've been there and done that -- for George Anzinger's HRT. :-)
>>> Another issue I have is to implement clockevent set_mode() method. You
>>> left it empty but I think we need at least to shut down the timer
>>> interrupt when setting the clock event device. Strangely I haven't
>>> found a "generic" way to stop them through cp0. Have I missed
>>> something ?
>> You can mask the count/compare interrupt in the status register like any
>> other interrupt. Keep in mind that on many CPUs this interrupt is
>> shared with the performance counter interrupt so cannot always be
>> disabled.
> Well this interrupt could be shared with other devices too, couldn't it ?
> If so only the board code can disable it.
>> There is no other disable bit for this interrupt than the IE bit in the
>> status register. So it may just have to be ignored.
> That would mean we can't have a tickless system in these cases, wouldn't
> it ?
No, it doesn't. Even on dyntick kernels, interrupts do happen several
times a second. Dynticks have nothing to do with disabling timer interrupts...
WBR, Sergei
next prev parent reply other threads:[~2007-06-07 13:41 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 18:54 Tickless/dyntick kernel, highres timer and general time crapectomy Ralf Baechle
2007-06-06 19:04 ` Sergei Shtylyov
2007-06-06 19:04 ` Ralf Baechle
2007-06-06 19:04 ` Ralf Baechle
2007-06-07 7:59 ` Franck Bui-Huu
2007-06-07 8:49 ` Atsushi Nemoto
2007-06-07 11:30 ` Ralf Baechle
2007-06-07 13:11 ` Franck Bui-Huu
2007-06-07 13:43 ` Sergei Shtylyov [this message]
2007-06-07 14:44 ` Franck Bui-Huu
2007-06-07 14:49 ` Sergei Shtylyov
2007-06-07 15:48 ` Ralf Baechle
2007-06-08 8:29 ` Franck Bui-Huu
2007-06-08 9:41 ` Ralf Baechle
2007-06-08 14:22 ` Atsushi Nemoto
2007-06-07 15:02 ` Ralf Baechle
2007-06-07 15:14 ` Ralf Baechle
2007-06-08 9:07 ` Franck Bui-Huu
2007-06-08 9:57 ` Ralf Baechle
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=46680B75.5040809@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=vagabon.xyz@gmail.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