lshw/lshw-devtree_machine_describtion.patch
Martin Pluskal 1c6c3c94bc Accepting request 573781 from home:pluskalm:branches:hardware
- Drop not needed post macros
- Add ppc enablement patches (bsc#1079846):
  * lshw-cpuinfo.patch
  * lshw-devtree_cpunodes.patch 
  * lshw-devtree_machine_describtion.patch
  * lshw-dimminfo.patch

OBS-URL: https://build.opensuse.org/request/show/573781
OBS-URL: https://build.opensuse.org/package/show/hardware/lshw?expand=0&rev=18
2018-02-07 15:59:49 +00:00

39 lines
1.3 KiB
Diff

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