* SMP timer issue
@ 2009-01-07 5:08 melwyn lobo
2009-01-07 14:20 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: melwyn lobo @ 2009-01-07 5:08 UTC (permalink / raw)
To: linux-kernel
Hello All,
Following reply from Russell on the ARM mailing list, I have posted my
question on this list.
We have ported the arm kernel 2.6.24 to ARM Cortex dual core
processor. My question is regarding timer optimization.
At present we have three timers for the two cores as follows;
1. MTU which provides the system tick and in the absence of local
timers provides IPI_TIMER messages to other processors.
2. Localtimer for CPU0
3. Localtimer for CPU1
So presently (when local timers are enabled) there are 3 interrupts
for every tick. I want to optimize the logic performed by MTU into the
local timer of CPU0 so that this one serves as the system tick. Thus
there would be no need for MTU interrupts and it would serve only as a
clock source.
My question in particular:
1. Is there some platform which has already done this ?
2. Is this possible without modifying existing kernel framework?
3. How to update jiffies during boot when localtimer has not yet been setup?
Eagerly awaiting for some advice/comments.
Thanks & Regards,
Melwyn
On Tue, Jan 6, 2009 at 11:44 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Tue, Jan 06, 2009 at 03:07:15PM +0530, melwyn lobo wrote:
>> Hello All,
>
> I suggest you ask your question of the kernel timer folk, who would
> be more knowledgable of the code you're asking about. See the
> MAINTAINERS file for their contact info.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: SMP timer issue
2009-01-07 5:08 SMP timer issue melwyn lobo
@ 2009-01-07 14:20 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2009-01-07 14:20 UTC (permalink / raw)
To: melwyn lobo; +Cc: linux-kernel, Thomas Gleixner, Ingo Molnar
On Wed, 2009-01-07 at 10:38 +0530, melwyn lobo wrote:
> Hello All,
> Following reply from Russell on the ARM mailing list, I have posted my
> question on this list.
>
> We have ported the arm kernel 2.6.24 to ARM Cortex dual core
> processor. My question is regarding timer optimization.
> At present we have three timers for the two cores as follows;
> 1. MTU which provides the system tick and in the absence of local
> timers provides IPI_TIMER messages to other processors.
> 2. Localtimer for CPU0
> 3. Localtimer for CPU1
>
> So presently (when local timers are enabled) there are 3 interrupts
> for every tick. I want to optimize the logic performed by MTU into the
> local timer of CPU0 so that this one serves as the system tick. Thus
> there would be no need for MTU interrupts and it would serve only as a
> clock source.
>
> My question in particular:
> 1. Is there some platform which has already done this ?
> 2. Is this possible without modifying existing kernel framework?
> 3. How to update jiffies during boot when localtimer has not yet been setup?
>
> Eagerly awaiting for some advice/comments.
There is plenty code in the hrtimer stuff to make the cpu local timers
(which I presume are used to implement hrtimer clockevents) do the
jiffie tick.
I've no idea how to hook all that up, but added some folks who might
know to the CC.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-07 14:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-07 5:08 SMP timer issue melwyn lobo
2009-01-07 14:20 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®