From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: daniel.lezcano@linaro.org, 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, Peng Fan <peng.fan@nxp.com>, Jacky Bai <ping.bai@nxp.com> Subject: [PATCH 4/5] clocksource/drivers/imx-tpm: add CLOCK_EVT_FEAT_DYNIRQ Date: Tue, 14 Dec 2021 20:07:36 +0800 [thread overview] Message-ID: <20211214120737.1611955-5-peng.fan@oss.nxp.com> (raw) In-Reply-To: <20211214120737.1611955-1-peng.fan@oss.nxp.com> From: Peng Fan <peng.fan@nxp.com> Add CLOCK_EVT_FEAT_DYNIRQ to allow the IRQ could be runtime set affinity to the cores that needs wake up, otherwise saying core0 has to send IPI to wakeup core1. With CLOCK_EVT_FEAT_DYNIRQ set, when broadcast timer could wake up the cores, IPI is not needed. Acked-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 3afd9b0a668a..578fe162fd99 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -129,7 +129,7 @@ static struct timer_of to_tpm = { .clkevt = { .name = "i.MX7ULP TPM Timer", .rating = 200, - .features = CLOCK_EVT_FEAT_ONESHOT, + .features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ, .set_state_shutdown = tpm_set_state_shutdown, .set_state_oneshot = tpm_set_state_oneshot, .set_next_event = tpm_set_next_event, -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> To: daniel.lezcano@linaro.org, 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, Peng Fan <peng.fan@nxp.com>, Jacky Bai <ping.bai@nxp.com> Subject: [PATCH 4/5] clocksource/drivers/imx-tpm: add CLOCK_EVT_FEAT_DYNIRQ Date: Tue, 14 Dec 2021 20:07:36 +0800 [thread overview] Message-ID: <20211214120737.1611955-5-peng.fan@oss.nxp.com> (raw) In-Reply-To: <20211214120737.1611955-1-peng.fan@oss.nxp.com> From: Peng Fan <peng.fan@nxp.com> Add CLOCK_EVT_FEAT_DYNIRQ to allow the IRQ could be runtime set affinity to the cores that needs wake up, otherwise saying core0 has to send IPI to wakeup core1. With CLOCK_EVT_FEAT_DYNIRQ set, when broadcast timer could wake up the cores, IPI is not needed. Acked-by: Jacky Bai <ping.bai@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> --- drivers/clocksource/timer-imx-tpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index 3afd9b0a668a..578fe162fd99 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -129,7 +129,7 @@ static struct timer_of to_tpm = { .clkevt = { .name = "i.MX7ULP TPM Timer", .rating = 200, - .features = CLOCK_EVT_FEAT_ONESHOT, + .features = CLOCK_EVT_FEAT_ONESHOT | CLOCK_EVT_FEAT_DYNIRQ, .set_state_shutdown = tpm_set_state_shutdown, .set_state_oneshot = tpm_set_state_oneshot, .set_next_event = tpm_set_next_event, -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-12-14 12:08 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-14 12:07 [PATCH 0/5] clocksource/drivers/imx: several updates Peng Fan (OSS) 2021-12-14 12:07 ` Peng Fan (OSS) 2021-12-14 12:07 ` [PATCH 1/5] clocksource/drivers/imx-sysctr: drop IRQF_IRQPOLL Peng Fan (OSS) 2021-12-14 12:07 ` Peng Fan (OSS) 2022-03-14 9:28 ` [tip: timers/core] clocksource/drivers/imx-sysctr: Drop IRQF_IRQPOLL tip-bot2 for Peng Fan 2021-12-14 12:07 ` [PATCH 2/5] clocksource/drivers/imx-tpm: drop IRQF_IRQPOLL Peng Fan (OSS) 2021-12-14 12:07 ` Peng Fan (OSS) 2022-03-14 9:28 ` [tip: timers/core] clocksource/drivers/imx-tpm: Drop IRQF_IRQPOLL tip-bot2 for Peng Fan 2021-12-14 12:07 ` [PATCH 3/5] clocksource/drivers/imx-tpm: mark two variable with __ro_after_init Peng Fan (OSS) 2021-12-14 12:07 ` Peng Fan (OSS) 2022-03-14 9:28 ` [tip: timers/core] clocksource/drivers/imx-tpm: Mark " tip-bot2 for Peng Fan 2021-12-14 12:07 ` Peng Fan (OSS) [this message] 2021-12-14 12:07 ` [PATCH 4/5] clocksource/drivers/imx-tpm: add CLOCK_EVT_FEAT_DYNIRQ Peng Fan (OSS) 2022-03-14 9:28 ` [tip: timers/core] clocksource/drivers/imx-tpm: Add CLOCK_EVT_FEAT_DYNIRQ tip-bot2 for Peng Fan 2021-12-14 12:07 ` [PATCH 5/5] clocksource/drivers/imx-tpm: update name of clkevt Peng Fan (OSS) 2021-12-14 12:07 ` Peng Fan (OSS) 2022-03-14 9:28 ` [tip: timers/core] clocksource/drivers/imx-tpm: Update " tip-bot2 for Peng Fan 2022-01-11 3:39 ` [PATCH 0/5] clocksource/drivers/imx: several updates Peng Fan 2022-01-11 3:39 ` Peng Fan 2022-01-26 8:24 ` Peng Fan 2022-01-26 8:24 ` Peng Fan 2022-01-26 8:59 ` Daniel Lezcano 2022-01-26 8:59 ` Daniel Lezcano 2022-02-13 23:46 ` Peng Fan 2022-02-13 23:46 ` Peng Fan 2022-02-14 11:02 ` Daniel Lezcano 2022-02-14 11:02 ` Daniel Lezcano
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=20211214120737.1611955-5-peng.fan@oss.nxp.com \ --to=peng.fan@oss.nxp.com \ --cc=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=ping.bai@nxp.com \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ --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: linkBe 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.