Re: [PATCH 3/5] msm: timer: SMP timer support for msm

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jeff Ohlstein
Date: Monday, December 6, 2010 - 9:49 pm

Thomas Gleixner wrote:
dev_id is specified per struct irqaction, which is registered once per 
irq number. However, each core has a separate clock_event_device. Since 
the timer irq has the same irq number on both cores, we need to know 
what core we are on to know which clock_event_device is the correct one.
The reason is I had a common function for reading a timer count, but 
sometimes we want to read the cpu local timer, such as in the case of 
set_next_event, but sometimes I want to read a global timer, which is at 
a different address. However, you are right that it is silly to put a 
conditional there, especially when which branch I want is static at the 
callsite.
Done.
The clockevent could be the local_clock_event, which is not embedded 
into a struct msm_clock. However, its parameters will be the same as one 
of the existing msm_clock entries, so use that.
Done.
Done.
As stated by Russell, this is due to the fact that the timer interrupts 
are private to each core, and share the same irq number on each core.
Done.
So what needs to be done in local_timer_stop? Just stopping the timer 
from ticking? Aren't I going to want to do all the same things my 
set_mode function does in the shutdown case? I understand not calling 
into the clockevents functions, would you be opposed to me directly 
calling my set_mode function?

-Jeff

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] SMP support for msm, Jeff Ohlstein, (Mon Dec 6, 12:16 am)
[PATCH 1/5] msm: Secure Channel Manager (SCM) support, Jeff Ohlstein, (Mon Dec 6, 12:16 am)
[PATCH 3/5] msm: timer: SMP timer support for msm, Jeff Ohlstein, (Mon Dec 6, 12:16 am)
[PATCH 4/5] msm: hotplug: support cpu hotplug on msm, Jeff Ohlstein, (Mon Dec 6, 12:16 am)
[PATCH 5/5] msm: add SMP support for msm, Jeff Ohlstein, (Mon Dec 6, 12:16 am)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Thomas Gleixner, (Mon Dec 6, 2:56 am)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Russell King - ARM Linux, (Mon Dec 6, 3:20 am)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Thomas Gleixner, (Mon Dec 6, 4:11 am)
Re: [PATCH 1/5] msm: Secure Channel Manager (SCM) support, Valdis.Kletnieks, (Mon Dec 6, 1:00 pm)
Re: [PATCH 1/5] msm: Secure Channel Manager (SCM) support, Russell King - ARM Linux, (Mon Dec 6, 1:52 pm)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Jeff Ohlstein, (Mon Dec 6, 9:49 pm)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Russell King - ARM Linux, (Tue Dec 7, 1:17 am)
Re: [PATCH 1/5] msm: Secure Channel Manager (SCM) support, Pavel Machek, (Wed Dec 15, 12:48 am)
Re: [PATCH 1/5] msm: Secure Channel Manager (SCM) support, Russell King - ARM Linux, (Wed Dec 15, 9:07 am)
Re: [PATCH 3/5] msm: timer: SMP timer support for msm, Russell King - ARM Linux, (Mon Dec 20, 5:21 am)