All of lore.kernel.org
 help / color / mirror / Atom feed
From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clocksource: marco: fix the affinity set for local timer of CPU1
Date: Fri, 16 May 2014 16:07:00 +0200	[thread overview]
Message-ID: <53761B84.90109@linaro.org> (raw)
In-Reply-To: <1399445204-22159-1-git-send-email-21cnbao@gmail.com>

On 05/07/2014 08:46 AM, Barry Song wrote:
> From: Zhiwu Song <Zhiwu.Song@csr.com>
>
> irqchip will reject the affinity set to CPUs which is not online
> yet. but in the CPU1 wakeup stage, OS only sets CPU1 to be online
> after local timer is set, so that causes the irq_set_affinity not
> work. this patch moves to irq_force_affinity() for the low level
> boot stage.
>
> Signed-off-by: Zhiwu Song <Zhiwu.Song@csr.com>
> Signed-off-by: Barry Song <Baohua.Song@csr.com>
> ---
>   drivers/clocksource/timer-marco.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/clocksource/timer-marco.c b/drivers/clocksource/timer-marco.c
> index 571d109..dbd3039 100644
> --- a/drivers/clocksource/timer-marco.c
> +++ b/drivers/clocksource/timer-marco.c
> @@ -199,7 +199,7 @@ static int sirfsoc_local_timer_setup(struct clock_event_device *ce)
>
>   	action->dev_id = ce;
>   	BUG_ON(setup_irq(ce->irq, action));
> -	irq_set_affinity(action->irq, cpumask_of(cpu));
> +	irq_force_affinity(action->irq, cpumask_of(cpu));
>
>   	clockevents_register_device(ce);
>   	return 0;

Applied to my tree as 3.15 fix.

Thanks
   -- Daniel



-- 
  <http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

      reply	other threads:[~2014-05-16 14:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-07  6:46 [PATCH] clocksource: marco: fix the affinity set for local timer of CPU1 Barry Song
2014-05-16 14:07 ` Daniel Lezcano [this message]

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=53761B84.90109@linaro.org \
    --to=daniel.lezcano@linaro.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.