From: Santosh Shilimkar <santosh.shilimkar@ti.com>
To: Colin Cross <ccross@google.com>, tglx@linutronix.de
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>,
Grant Likely <grant.likely@secretlab.ca>,
Paul Mundt <lethal@linux-sh.org>,
Magnus Damm <magnus.damm@gmail.com>,
John Linn <John.Linn@xilinx.com>,
linux-arm-kernel@lists.infradead.org,
l-o <linux-omap@vger.kernel.org>
Subject: Re: RFC, GIC based smp_cross_call cleanup suggestion
Date: Sun, 03 Apr 2011 11:53:07 +0530 [thread overview]
Message-ID: <4D98124B.6090005@ti.com> (raw)
In-Reply-To: <BANLkTim+bco_90iPLrc1ioV4bdSw+LRzQQ@mail.gmail.com>
+ Thomas G,
On 4/2/2011 2:40 PM, Colin Cross wrote:
> On Sat, Apr 2, 2011 at 1:51 AM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
>> On Fri, Apr 01, 2011 at 04:55:02PM -0600, Grant Likely wrote:
>>> On Fri, Apr 1, 2011 at 4:26 PM, John Linn<John.Linn@xilinx.com> wrote:
>>>> I’m getting ready to submit a patch to add SMP to Xilinx code. I notice that
>>>> smp_cross_call for all GIC based platforms is duplicated across each
>>>> platform in smp.h.
>>>>
>>>>
>>>>
>>>> I thought I’d try to jump in to help with some cleanup, although I realize
>>>> it’s minimal, I have to start somewhere.
>>>>
>>>>
>>>>
>>>> What about moving the smp_cross_call for GIC based designs into gic.h?
>>>
>>> Go for it. It's an obvious cleanup.
>>
>> That assumes that all SMP implementations will always have a GIC. It
>> looks to me like this is conditional on shmobile, and so I don't think
>> its that trivial - maybe Paul or Magnus can first indicate why this is.
>
> OMAP4 may also require a custom smp_cross_call implementation if CPU
> idle is going to be supported in SMP - in CPU off idle modes, a GIC
> SGI will not wake the CPU, and a write directly to the CPU's power
> management controller or an external interrupt source would be
> required.
This can be done without making smp_cross_call() platform
specific.
While working on broad-cast notifiers for ARM with Thomas G, this
point was discussed.
Where the TWD can't wakeup its own local CPU from C3 mode, how do we
provide a platform specific method to perform this wakeup ?
Thomas Quoted....
"It would not complicate the OMAP code that much. All it needs is
extending the clock event device callbacks by an broadcast_affinity()
function which would be called from the broadcast code when the
broadcast device is armed. The argument would be a cpumask which would
tell you which core(s) to wake up when the broadcast timer fires next.
So OMAP would fill in that hook and implement the wakeup redirector
setup, which I guess would be a couple of lines."
From above it's should be trivial once the broad-cast notifiers
are extended to have "broadcast_affinity()" supported
Regards
Santosh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next parent reply other threads:[~2011-04-03 6:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <10921831-0170-4106-bb3a-a52515a32c3e@VA3EHSMHS002.ehs.local>
[not found] ` <BANLkTimY+mRXqT7NwUQ86SxnfKw0HX-pTQ@mail.gmail.com>
[not found] ` <20110402085133.GE8482@n2100.arm.linux.org.uk>
[not found] ` <BANLkTim+bco_90iPLrc1ioV4bdSw+LRzQQ@mail.gmail.com>
2011-04-03 6:23 ` Santosh Shilimkar [this message]
2011-04-03 6:36 ` RFC, GIC based smp_cross_call cleanup suggestion Colin Cross
[not found] ` <BANLkTimjyBzh3Kc+1njcBBYCouKdSWhgng@mail.gmail.com>
[not found] ` <20110403103730.GB4213@n2100.arm.linux.org.uk>
[not found] ` <4D9851B5.20100@ti.com>
[not found] ` <20110403134837.GE4213@n2100.arm.linux.org.uk>
2011-04-04 8:20 ` Santosh Shilimkar
2011-04-04 8:25 ` Russell King - ARM Linux
2011-04-04 8:33 ` Santosh Shilimkar
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=4D98124B.6090005@ti.com \
--to=santosh.shilimkar@ti.com \
--cc=John.Linn@xilinx.com \
--cc=ccross@google.com \
--cc=grant.likely@secretlab.ca \
--cc=lethal@linux-sh.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=magnus.damm@gmail.com \
--cc=tglx@linutronix.de \
/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