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

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