Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: GTDT: Get rid of acpi_arch_timer_mem_init()

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>

authored by

Marc Zyngier and committed by
Catalin Marinas
155f8d4e 3a866087

-35
-34
drivers/acpi/arm64/gtdt.c
··· 303 303 return -EINVAL; 304 304 } 305 305 306 - /** 307 - * acpi_arch_timer_mem_init() - Get the info of all GT blocks in GTDT table. 308 - * @timer_mem: The pointer to the array of struct arch_timer_mem for returning 309 - * the result of parsing. The element number of this array should 310 - * be platform_timer_count(the total number of platform timers). 311 - * @timer_count: It points to a integer variable which is used for storing the 312 - * number of GT blocks we have parsed. 313 - * 314 - * Return: 0 if success, -EINVAL/-ENODEV if error. 315 - */ 316 - int __init acpi_arch_timer_mem_init(struct arch_timer_mem *timer_mem, 317 - int *timer_count) 318 - { 319 - int ret; 320 - void *platform_timer; 321 - 322 - *timer_count = 0; 323 - for_each_platform_timer(platform_timer) { 324 - if (is_timer_block(platform_timer)) { 325 - ret = gtdt_parse_timer_block(platform_timer, timer_mem); 326 - if (ret) 327 - return ret; 328 - timer_mem++; 329 - (*timer_count)++; 330 - } 331 - } 332 - 333 - if (*timer_count) 334 - pr_info("found %d memory-mapped timer block(s).\n", 335 - *timer_count); 336 - 337 - return 0; 338 - } 339 - 340 306 /* 341 307 * Initialize a SBSA generic Watchdog platform device info from GTDT 342 308 */
-1
include/linux/acpi.h
··· 755 755 int acpi_gtdt_init(struct acpi_table_header *table, int *platform_timer_count); 756 756 int acpi_gtdt_map_ppi(int type); 757 757 bool acpi_gtdt_c3stop(int type); 758 - int acpi_arch_timer_mem_init(struct arch_timer_mem *timer_mem, int *timer_count); 759 758 #endif 760 759 761 760 #ifndef ACPI_HAVE_ARCH_SET_ROOT_POINTER