From: Lorenzo Pieralisi <lpieralisi@kernel.org>
To: Marc Zyngier <maz@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
Hanjun Guo <guohanjun@huawei.com>,
Sudeep Holla <sudeep.holla@arm.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Mark Rutland <mark.rutland@arm.com>,
Alexandru Elisei <alexandru.elisei@arm.com>,
Steven Price <steven.price@arm.com>
Subject: Re: [PATCH v2 3/4] clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver
Date: Thu, 30 Oct 2025 17:35:11 +0100 [thread overview]
Message-ID: <aQOTv3VnOCTjSj46@lpieralisi> (raw)
In-Reply-To: <20250814154622.10193-4-maz@kernel.org>
On Thu, Aug 14, 2025 at 04:46:21PM +0100, Marc Zyngier wrote:
[...]
> diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c
[...]
> #ifdef CONFIG_ACPI_GTDT
> -static int __init
> -arch_timer_mem_verify_cntfrq(struct arch_timer_mem *timer_mem)
> -{
> - struct arch_timer_mem_frame *frame;
> - u32 rate;
> - int i;
> -
> - for (i = 0; i < ARCH_TIMER_MEM_MAX_FRAMES; i++) {
> - frame = &timer_mem->frame[i];
> -
> - if (!frame->valid)
> - continue;
> -
> - rate = arch_timer_mem_frame_get_cntfrq(frame);
> - if (rate == arch_timer_rate)
> - continue;
> -
> - pr_err(FW_BUG "CNTFRQ mismatch: frame @ %pa: (0x%08lx), CPU: (0x%08lx)\n",
> - &frame->cntbase,
> - (unsigned long)rate, (unsigned long)arch_timer_rate);
> -
> - return -EINVAL;
> - }
> -
> - return 0;
> -}
> -
> -static int __init arch_timer_mem_acpi_init(int platform_timer_count)
> -{
> - struct arch_timer_mem *timers, *timer;
> - struct arch_timer_mem_frame *frame, *best_frame = NULL;
> - int timer_count, i, ret = 0;
> -
> - timers = kcalloc(platform_timer_count, sizeof(*timers),
> - GFP_KERNEL);
> - if (!timers)
> - return -ENOMEM;
> -
> - ret = acpi_arch_timer_mem_init(timers, &timer_count);
You probably already noticed (I was checking the initcall level in
drivers/acpi/arm64/gtdt.c to start sorting out GICv5 IWB dependencies),
AFAICS acpi_arch_timer_mem_init() is now unused so it can be removed.
Thanks,
Lorenzo
next prev parent reply other threads:[~2025-10-30 16:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 15:46 [PATCH v2 0/4] clocksource: Add standalone MMIO ARM arch timer driver Marc Zyngier
2025-08-14 15:46 ` [PATCH v2 1/4] ACPI: GTDT: Generate platform devices for MMIO timers Marc Zyngier
2025-08-14 15:46 ` [PATCH v2 2/4] clocksource/drivers/arm_arch_timer: Add standalone MMIO driver Marc Zyngier
2025-08-14 15:46 ` [PATCH v2 3/4] clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver Marc Zyngier
2025-10-30 16:35 ` Lorenzo Pieralisi [this message]
2025-10-30 16:55 ` Marc Zyngier
2025-08-14 15:46 ` [PATCH v2 4/4] clocksource/drivers/arm_arch_timer_mmio: Add MMIO clocksource Marc Zyngier
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=aQOTv3VnOCTjSj46@lpieralisi \
--to=lpieralisi@kernel.org \
--cc=alexandru.elisei@arm.com \
--cc=daniel.lezcano@linaro.org \
--cc=guohanjun@huawei.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maz@kernel.org \
--cc=rafael@kernel.org \
--cc=steven.price@arm.com \
--cc=sudeep.holla@arm.com \
--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: 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