From d9a7cc0f3a85a27bd3e8c2867b9405e00e1b5f3b Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Tue, 22 Sep 2026 21:20:05 -0700 Subject: [PATCH 14/75] x86/platform/uv: Remove the write-only coherency_domain_number uv_hub_info_s::coherency_domain_number is assigned once, from sn_coherency_id, and never read. Its only consumer used to be the sgi-xp code, which needed the partition's coherency domain to build NumaLink addresses; that driver was removed in commit dbf69afe320e ("misc: sgi-xp: Remove SGI XP drivers") sn_coherency_id itself stays: it still backs the "coherence_id" sysfs attribute in the uv_sysfs driver. No functional change intended. --- arch/x86/include/asm/uv/uv_hub.h | 1 - arch/x86/kernel/apic/x2apic_uv_x.c | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h index cdd7c324e27de..8e61488253d3c 100644 --- a/arch/x86/include/asm/uv/uv_hub.h +++ b/arch/x86/include/asm/uv/uv_hub.h @@ -128,7 +128,6 @@ struct uv_hub_info_s { unsigned int gnode_extra; unsigned short pnode; unsigned short pnode_mask; - unsigned short coherency_domain_number; unsigned short numa_blade_id; unsigned short nr_possible_cpus; unsigned short *node_to_socket; diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index c27ab0ae7173e..9ec752a8a985a 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -1466,7 +1466,6 @@ static void __init uv_system_init_hub(void) pr_info("UV: Found %d hubs, %d nodes, %d CPUs\n", uv_num_possible_blades(), num_possible_nodes(), num_possible_cpus()); uv_bios_get_sn_info(0, &uv_type, &sn_partition_id, &sn_coherency_id, &sn_region_size, &system_serial_number); - hub_info.coherency_domain_number = sn_coherency_id; uv_rtc_init(); /* -- 2.43.0