Blame SOURCES/0021-devtree-Add-machine-description.patch

21ef37
From 1fee4c448ea6932fb3a01e866ce4b1741f26c6bb Mon Sep 17 00:00:00 2001
21ef37
From: Chandni Verma <chandni@linux.vnet.ibm.com>
21ef37
Date: Thu, 20 Oct 2016 12:12:13 +0530
21ef37
Subject: [PATCH 21/43] devtree: Add machine description
21ef37
21ef37
Add machine description for PowerNV and pseries LPAR platform.
21ef37
21ef37
PowerNV = Power Non Virtualized
21ef37
pSeries LPAR = Linux running on PowerVM LPAR
21ef37
21ef37
Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>
21ef37
[Split original patch and created separate patch for machine
21ef37
 description - Vasant]
21ef37
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
21ef37
---
21ef37
 src/core/device-tree.cc | 2 ++
21ef37
 1 file changed, 2 insertions(+)
21ef37
21ef37
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
21ef37
index b8feb12..951535c 100644
21ef37
--- a/src/core/device-tree.cc
21ef37
+++ b/src/core/device-tree.cc
21ef37
@@ -927,6 +927,7 @@ bool scan_device_tree(hwNode & n)
21ef37
   {
21ef37
     n.setVendor(get_string(DEVICETREE "/vendor", "IBM"));
21ef37
     n.setProduct(get_string(DEVICETREE "/model-name"));
21ef37
+    n.setDescription("PowerNV");
21ef37
     if (core)
21ef37
     {
21ef37
       core->addHint("icon", string("board"));
21ef37
@@ -983,6 +984,7 @@ bool scan_device_tree(hwNode & n)
21ef37
       scan_devtree_root(*core);
21ef37
       scan_devtree_bootrom(*core);
21ef37
       if (exists(DEVICETREE "/ibm,lpar-capable")) {
21ef37
+        n.setDescription("pSeries LPAR");
21ef37
         scan_devtree_cpu_power(*core);
21ef37
         scan_devtree_memory(*core);
21ef37
       }
21ef37
-- 
21ef37
2.10.2
21ef37