Skip to content

Commit 830a0d1

Browse files
lrq-maxKAGA-KOKO
authored andcommitted
x86/mm: Don't print out SRAT table information
This per CPU log is becoming longer with more and more CPUs in system, which slows down the boot process due to the serializing nature of printk(). The value of this information is dubious and it can be retrieved by lscpu from user space if required.. Downgrade the printk() to pr_debug() so it is still accessible for debug purposes. [ tglx: Massaged changelog ] Signed-off-by: Li RongQing <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent cc31744 commit 830a0d1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arch/x86/mm/srat.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa)
5757
}
5858
set_apicid_to_node(apic_id, node);
5959
node_set(node, numa_nodes_parsed);
60-
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n",
61-
pxm, apic_id, node);
60+
pr_debug("SRAT: PXM %u -> APIC 0x%04x -> Node %u\n", pxm, apic_id, node);
6261
}
6362

6463
/* Callback for Proximity Domain -> LAPIC mapping */
@@ -98,8 +97,7 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
9897

9998
set_apicid_to_node(apic_id, node);
10099
node_set(node, numa_nodes_parsed);
101-
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n",
102-
pxm, apic_id, node);
100+
pr_debug("SRAT: PXM %u -> APIC 0x%02x -> Node %u\n", pxm, apic_id, node);
103101
}
104102

105103
int __init x86_acpi_numa_init(void)

0 commit comments

Comments
 (0)