Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 4/5] msm: hotplug: support cpu hotplug on msm
Date: Mon, 13 Dec 2010 16:53:37 +0000	[thread overview]
Message-ID: <AANLkTi=VaayMuiU-RXnL40gf3_y0YWYvOWayDofdDmpL@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimkUpgPD5BdjL-3aV=miJwbT0OOWAJJ+V7LUhbP@mail.gmail.com>

On 13 December 2010 15:12, Catalin Marinas <catalin.marinas@arm.com> wrote:
> On 13 December 2010 01:20, ?<ykaoua@qualcomm.com> wrote:
>> --- /dev/null
>> +++ b/arch/arm/mach-msm/hotplug.c
> [...]
>> +static inline void platform_do_lowpower(unsigned int cpu)
>> +{
>> + ? ? ? /* Just enter wfe for now. */
>> + ? ? ? for (;;) {
>> + ? ? ? ? ? ? ? asm("wfe");
>> + ? ? ? ? ? ? ? if (pen_release == cpu) {
>> + ? ? ? ? ? ? ? ? ? ? ? /*
>> + ? ? ? ? ? ? ? ? ? ? ? ?* OK, proper wakeup, we're done
>> + ? ? ? ? ? ? ? ? ? ? ? ?*/
>> + ? ? ? ? ? ? ? ? ? ? ? break;
>> + ? ? ? ? ? ? ? }
>> + ? ? ? ? ? ? ? smp_rmb();
>
> Do you need some barrier after wfe?

I checked with the hw people and it looks like we don't need a DSB
after an WFE (as you have in headsmp.S) since the hardware doesn't
speculate the loads beyond the WFE (lower power state). But in the
above case you may need some compiler barrier to avoid code
reordering.

-- 
Catalin

  reply	other threads:[~2010-12-13 16:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13  1:20 [PATCH 0/5 v3] SMP support for msm ykaoua at qualcomm.com
2010-12-13  1:20 ` [PATCH v3 1/5] msm: Secure Channel Manager (SCM) support ykaoua at qualcomm.com
2010-12-13  1:20 ` [PATCH v3 2/5] msm: scm-boot: Support for setting cold/warm boot addresses ykaoua at qualcomm.com
2010-12-13  1:20 ` [PATCH v3 3/5] msm: timer: SMP timer support for msm ykaoua at qualcomm.com
2010-12-13  1:20 ` [PATCH v3 4/5] msm: hotplug: support cpu hotplug on msm ykaoua at qualcomm.com
2010-12-13  1:20 ` [PATCH v3 5/5] msm: add SMP support for msm ykaoua at qualcomm.com
     [not found] ` <-1357135968697415881@unknownmsgid>
2010-12-13 15:12   ` [PATCH v3 4/5] msm: hotplug: support cpu hotplug on msm Catalin Marinas
2010-12-13 16:53     ` Catalin Marinas [this message]
2010-12-13 16:35 ` [PATCH 0/5 v3] SMP support for msm David Brown

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='AANLkTi=VaayMuiU-RXnL40gf3_y0YWYvOWayDofdDmpL@mail.gmail.com' \
    --to=catalin.marinas@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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