You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2024/04/24 15:56:04 UTC
(nuttx) branch master updated: x86_64_acpi.c: avoid debug messages in acpi_init()
This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 9a6fa489d8 x86_64_acpi.c: avoid debug messages in acpi_init()
9a6fa489d8 is described below
commit 9a6fa489d814fe983e43716a6de9c625789bc2d5
Author: p-szafonimateusz <p-...@xiaomi.com>
AuthorDate: Tue Apr 23 10:56:26 2024 +0200
x86_64_acpi.c: avoid debug messages in acpi_init()
acpi_init() must be called early during boot, some system components may be
unavailable at this stage, so debug messages won't work
Signed-off-by: p-szafonimateusz <p-...@xiaomi.com>
---
arch/x86_64/src/common/x86_64_acpi.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/arch/x86_64/src/common/x86_64_acpi.c b/arch/x86_64/src/common/x86_64_acpi.c
index ec367e9fcb..aff0d797b1 100644
--- a/arch/x86_64/src/common/x86_64_acpi.c
+++ b/arch/x86_64/src/common/x86_64_acpi.c
@@ -469,21 +469,11 @@ int acpi_init(uintptr_t rsdp)
/* Get MADT table */
- ret = acpi_table_find(ACPI_SIG_APIC,
- (struct acpi_sdt_s **)&acpi->madt);
- if (ret < 0)
- {
- acpi_err("MADT not present");
- }
+ acpi_table_find(ACPI_SIG_APIC, (struct acpi_sdt_s **)&acpi->madt);
/* Get MCFG */
- ret = acpi_table_find(ACPI_SIG_MCFG,
- (struct acpi_sdt_s **)&acpi->mcfg);
- if (ret < 0)
- {
- acpi_err("MCFG not present");
- }
+ acpi_table_find(ACPI_SIG_MCFG, (struct acpi_sdt_s **)&acpi->mcfg);
return OK;
}