mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "tip-bot2 for Peng Fan" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Peng Fan <peng.fan@nxp.com>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: timers/core] clocksource/drivers/timer-imx-sysctr: Set cpumask to cpu_possible_mask
Date: Mon, 10 Jan 2022 12:59:54 -0000	[thread overview]
Message-ID: <164181959418.16921.2526564999400774440.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20211201125030.2307746-2-peng.fan@oss.nxp.com>

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     0ed9e4ebcebcb36bd1186e68cf2f72b3e0bfbac6
Gitweb:        https://git.kernel.org/tip/0ed9e4ebcebcb36bd1186e68cf2f72b3e0bfbac6
Author:        Peng Fan <peng.fan@nxp.com>
AuthorDate:    Wed, 01 Dec 2021 20:50:30 +08:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
CommitterDate: Tue, 14 Dec 2021 10:17:27 +01:00

clocksource/drivers/timer-imx-sysctr: Set cpumask to cpu_possible_mask

The syctr interrupt could set the affinity to any cores in the
SoC. However, the default affinity is set to cpu 0.

This timer will be used as broadcast timer on all the i.MX
SoCs. Because DYNIRQ flag is set, the core time framework will runtime
set the interrupt affinity to the cores that needs to wake up and the
cpumask will runtime set to the core that will be wake up. So even the
sysctr initialization use cpumask 0, there is no issue, the current
patch is just use cpu_possible_mask to show the fact that the timer
supports routed to all the cpu cores and nothing else.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/20211201125030.2307746-2-peng.fan@oss.nxp.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/clocksource/timer-imx-sysctr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-imx-sysctr.c b/drivers/clocksource/timer-imx-sysctr.c
index 2b309af..55a8e19 100644
--- a/drivers/clocksource/timer-imx-sysctr.c
+++ b/drivers/clocksource/timer-imx-sysctr.c
@@ -119,7 +119,7 @@ static struct timer_of to_sysctr = {
 
 static void __init sysctr_clockevent_init(void)
 {
-	to_sysctr.clkevt.cpumask = cpumask_of(0);
+	to_sysctr.clkevt.cpumask = cpu_possible_mask;
 
 	clockevents_config_and_register(&to_sysctr.clkevt,
 					timer_of_rate(&to_sysctr),

  parent reply	other threads:[~2022-01-10 13:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-01 12:50 [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Peng Fan (OSS)
2021-12-01 12:50 ` [PATCH 2/2] clocksource: timer-imx-sysctr: set cpumask to cpu_possible_mask Peng Fan (OSS)
2021-12-02 10:22   ` Daniel Lezcano
2021-12-05 12:53     ` Peng Fan
2022-01-10 12:59   ` tip-bot2 for Peng Fan [this message]
2021-12-03  0:05 ` [PATCH 1/2] clocksource/drivers/imx-sysctr: mark two variable with __ro_after_init Kees Cook
2021-12-09 13:15 ` Daniel Lezcano
2021-12-14  8:25   ` Peng Fan
2021-12-14  9:19     ` Daniel Lezcano
2022-01-10 12:59 ` [tip: timers/core] clocksource/drivers/imx-sysctr: Mark " tip-bot2 for Peng Fan

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=164181959418.16921.2526564999400774440.tip-bot2@tip-bot2 \
    --to=tip-bot2@linutronix.de \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=x86@kernel.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

all inboxes | Powered by JetHome®