From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: "Peng Fan (OSS)" <peng.fan@oss.nxp.com>,
tglx@linutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de
Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, van.freenix@gmail.com,
Peng Fan <peng.fan@nxp.com>
Subject: Re: [PATCH 2/2] clocksource: timer-imx-sysctr: set cpumask to cpu_possible_mask
Date: Thu, 2 Dec 2021 11:22:13 +0100 [thread overview]
Message-ID: <80578aa9-35dd-02ca-fb07-5895991572e2@linaro.org> (raw)
In-Reply-To: <20211201125030.2307746-2-peng.fan@oss.nxp.com>
On 01/12/2021 13:50, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@nxp.com>
>
> Actually we have CLOCK_EVT_FEAT_DYNIRQ, the irq affinity will be runtime
> changed and no issue. But the system counter timer is not tied to CPU0,
> so use cpu_possible_mask here.
Did you mean:
"There is no reason to tie the system counter timer to CPU0, change its
affinity to cpu_possible_mask.
Moreover, the timer has the flag CLOCK_EVT_FEAT_DYNIRQ set, changing to
cpu_possibl_mask will reduce the number of wakeups related to the system
timer"
?
Note you may want to explain why 'there is no reason'
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
> ---
> 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 2b309af11266..55a8e198d2a1 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),
>
--
<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
next prev parent reply other threads:[~2021-12-02 10:22 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 [this message]
2021-12-05 12:53 ` Peng Fan
2022-01-10 12:59 ` [tip: timers/core] clocksource/drivers/timer-imx-sysctr: Set " tip-bot2 for Peng Fan
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=80578aa9-35dd-02ca-fb07-5895991572e2@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peng.fan@nxp.com \
--cc=peng.fan@oss.nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=tglx@linutronix.de \
--cc=van.freenix@gmail.com \
/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®