]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ACPI: GTDT: Get rid of acpi_arch_timer_mem_init()
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Oct 2025 11:01:37 +0000 (11:01 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 25 Nov 2025 11:55:13 +0000 (11:55 +0000)
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 <maz@kernel.org>
Cc: Hanjun Guo <guohanjun@huawei.com>
Cc: Sudeep Holla <sudeep.holla@arm.com>
Cc: Rafael J. Wysocki <rafael@kernel.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/acpi/arm64/gtdt.c
include/linux/acpi.h

index fd995a1d3d248b85331a35aea37086b2f67e2d37..2f100c1fa2d46942e1fe4b34b1c73f0d9acfd7bc 100644 (file)
@@ -303,40 +303,6 @@ error:
        return -EINVAL;
 }
 
-/**
- * acpi_arch_timer_mem_init() - Get the info of all GT blocks in GTDT table.
- * @timer_mem: The pointer to the array of struct arch_timer_mem for returning
- *             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 = 0;
-       for_each_platform_timer(platform_timer) {
-               if (is_timer_block(platform_timer)) {
-                       ret = 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
  */
index 5ff5d99f6ead50e821db4e543c4566c3deb4b573..22b377c3a3196c669422df9ab90893b366a66624 100644 (file)
@@ -755,7 +755,6 @@ int acpi_reconfig_notifier_unregister(struct notifier_block *nb);
 int acpi_gtdt_init(struct acpi_table_header *table, int *platform_timer_count);
 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
 
 #ifndef ACPI_HAVE_ARCH_SET_ROOT_POINTER