From nobody Sat Feb 7 23:23:12 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 858393595B; Thu, 30 Oct 2025 11:01:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761822102; cv=none; b=itLjRtnVhJsG1Ea8BDqOATAvh0k4ATgttlP7GnQhTQ/cAPlxkmjqoejWMlmxfrWKbJSGKunBn3faDd8C2GH1cpW24/qX5ojlEHu9/sb5pkB77sBDqNBwVB5Cp1Uhyd2VHUYzb9a1FGw3GyKvHNiMLfmr6BM+EQ+GVwbtfN7RetU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761822102; c=relaxed/simple; bh=pbhBnQlD+ZJLKzn9PCW0WP9IW4K3HSFliaB0o7tNIok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UWFmEXphUmOlEqbCapTCRwYC+/f5UUP/dGWz4lk9W5x7B0reYRIkq4cytcaMHWWb/K4H4ByIijo5govNlQOjUbop3DTU0gKC8gUL91rRihC8OA7VD57KOro87O+GiYG3+BB8ovDhy9j0mU/dR+To4Mco170hhu1OH6i25UEBve4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RTC0Ps6J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RTC0Ps6J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06BA8C4CEF1; Thu, 30 Oct 2025 11:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761822102; bh=pbhBnQlD+ZJLKzn9PCW0WP9IW4K3HSFliaB0o7tNIok=; h=From:To:Cc:Subject:Date:From; b=RTC0Ps6JZmDhKLUGwQ2oB7YC6Zxi+k4vFukpLqVVXwvpu+Es6YYOBd6PzMvoC02YV 9tgeu8nGXeej01ao88Luvlyk76SmIPWr9dbF5Leda8HaseGeQbnCsqL+naFUNy/u3Z ulbqLfbUbdDg7bLKNs8cJPuAfvtbuvWpQ7925Bm+17C4wEhczUzASHvD2f4w9BkHu+ G/87oke0dPsBmEL7hRzRmPAnZCKWyNxcLoKeXsAymrmllIt6I476EUKJynOT8hl1zr tw4fnTlUlJ3LLPVTkt1s0PYcYu9FsPbay1looiC/Ph0apeTGyzzAZ9+YZkXafX2RuX Zx2xBtvB5Dw0g== Received: from sofa.misterjones.org ([185.219.108.64] helo=valley-girl.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vEQPU-00000000x9p-0NR2; Thu, 30 Oct 2025 11:01:40 +0000 From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Hanjun Guo , Sudeep Holla , "Rafael J. Wysocki" , Daniel Lezcano , Thomas Gleixner , Mark Rutland Subject: [PATCH] ACPI: GTDT: Get rid of acpi_arch_timer_mem_init() Date: Thu, 30 Oct 2025 11:01:37 +0000 Message-ID: <20251030110137.1843007-1-maz@kernel.org> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, guohanjun@huawei.com, sudeep.holla@arm.com, rafael@kernel.org, daniel.lezcano@linaro.org, tglx@linutronix.de, mark.rutland@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Content-Type: text/plain; charset="utf-8" Since 0f67b56d84b4c ("clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver"), acpi_arch_timer_mem_init() is unused. Remove it. Signed-off-by: Marc Zyngier Cc: Hanjun Guo Cc: Sudeep Holla Cc: "Rafael J. Wysocki" Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Mark Rutland Acked-by: Hanjun Guo --- drivers/acpi/arm64/gtdt.c | 34 ---------------------------------- include/linux/acpi.h | 1 - 2 files changed, 35 deletions(-) diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c index 8cc8af8fd408c..ffc867bac2d60 100644 --- a/drivers/acpi/arm64/gtdt.c +++ b/drivers/acpi/arm64/gtdt.c @@ -303,40 +303,6 @@ static int __init gtdt_parse_timer_block(struct acpi_g= tdt_timer_block *block, return -EINVAL; } =20 -/** - * acpi_arch_timer_mem_init() - Get the info of all GT blocks in GTDT tabl= e. - * @timer_mem: The pointer to the array of struct arch_timer_mem for retur= ning - * the result of parsing. The element number of this array should - * be platform_timer_count(the total number of platform timers). - * @timer_count: It points to a integer variable which is used for storing= the - * number of GT blocks we have parsed. - * - * Return: 0 if success, -EINVAL/-ENODEV if error. - */ -int __init acpi_arch_timer_mem_init(struct arch_timer_mem *timer_mem, - int *timer_count) -{ - int ret; - void *platform_timer; - - *timer_count =3D 0; - for_each_platform_timer(platform_timer) { - if (is_timer_block(platform_timer)) { - ret =3D gtdt_parse_timer_block(platform_timer, timer_mem); - if (ret) - return ret; - timer_mem++; - (*timer_count)++; - } - } - - if (*timer_count) - pr_info("found %d memory-mapped timer block(s).\n", - *timer_count); - - return 0; -} - /* * Initialize a SBSA generic Watchdog platform device info from GTDT */ diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 5ff5d99f6ead5..22b377c3a3196 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -755,7 +755,6 @@ int acpi_reconfig_notifier_unregister(struct notifier_b= lock *nb); int acpi_gtdt_init(struct acpi_table_header *table, int *platform_timer_co= unt); int acpi_gtdt_map_ppi(int type); bool acpi_gtdt_c3stop(int type); -int acpi_arch_timer_mem_init(struct arch_timer_mem *timer_mem, int *timer_= count); #endif =20 #ifndef ACPI_HAVE_ARCH_SET_ROOT_POINTER --=20 2.47.3