Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1285088

[PATCH] acpi, apei, hest: Move HEST table initialization where it belongs.

From fu.wei@linaro.org
Newsgroups linux.kernel
Subject [PATCH] acpi, apei, hest: Move HEST table initialization where it belongs.
Date 2015-12-07 09:50 +0100
Message-ID <qCZEB-28M-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


From: Tomasz Nowicki <tomasz.nowicki@linaro.org>

Since HEST (hardware error sources table) can describe more than PCI
specific errors, it needs to be moved out of acpi_pci_root_init.

Changelog:
v1: This patch - the first upstream patch to linux mailing lists.
    Fu Wei:
    (1)Rebase to v4.4-rc4;
    (2)Remove "#include <acpi/apei.h>" from drivers/acpi/pci_root.c]

Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Fu Wei <fu.wei@linaro.org>
---
 drivers/acpi/pci_root.c | 2 --
 drivers/acpi/scan.c     | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index ae3fe4e..a35dd23 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -33,7 +33,6 @@
 #include <linux/acpi.h>
 #include <linux/slab.h>
 #include <linux/dmi.h>
-#include <acpi/apei.h>	/* for acpi_hest_init() */
 
 #include "internal.h"
 
@@ -865,7 +864,6 @@ out_release_info:
 
 void __init acpi_pci_root_init(void)
 {
-	acpi_hest_init();
 	if (acpi_pci_disabled)
 		return;
 
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 78d5f02..a52e776 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -13,6 +13,8 @@
 #include <linux/nls.h>
 #include <linux/dma-mapping.h>
 
+#include <acpi/apei.h> /* for acpi_hest_init() */
+
 #include <asm/pgtable.h>
 
 #include "internal.h"
@@ -1912,6 +1914,7 @@ int __init acpi_scan_init(void)
 {
 	int result;
 
+	acpi_hest_init();
 	acpi_pci_root_init();
 	acpi_pci_link_init();
 	acpi_processor_init();
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] acpi, apei, hest: Move HEST table initialization where it belongs. fu.wei@linaro.org - 2015-12-07 09:50 +0100

csiph-web