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

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