]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: Suppress misleading SPCR console message when SPCR table is absent
authorLi Chen <chenl311@chinatelecom.cn>
Fri, 20 Jun 2025 13:13:08 +0000 (21:13 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 1 Jul 2025 14:06:51 +0000 (15:06 +0100)
commitbad3fa2fb9206f4dcec6ddef094ec2fbf6e8dcb2
treed3c719c8ec8d77b3e691fb6a999ae86aa4c58499
parentb9f58d3572a8e1ef707b941eae58ec4014b9269d
ACPI: Suppress misleading SPCR console message when SPCR table is absent

The kernel currently alway prints:
"Use ACPI SPCR as default console: No/Yes "

even on systems that lack an SPCR table. This can
mislead users into thinking the SPCR table exists
on the machines without SPCR.

With this change, the "Yes" is only printed if
the SPCR table is present, parsed and !param_acpi_nospcr.
This avoids user confusion on SPCR-less systems.

Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20250620131309.126555-3-me@linux.beauty
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/acpi.c