Add IBM Processor Properties
If Processor Manufacturer is IBM set ProcessorArchitecture and
InstructionSet.
This works the same as if the Manufacturer is Intel.
Change-Id: I61df182a12db6601004f1717471b4b34cdcf961b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/redfish-core/lib/cpudimm.hpp b/redfish-core/lib/cpudimm.hpp
index 4062411..c57394a 100644
--- a/redfish-core/lib/cpudimm.hpp
+++ b/redfish-core/lib/cpudimm.hpp
@@ -133,6 +133,12 @@
"x86";
aResp->res.jsonValue["InstructionSet"] = "x86-64";
}
+ else if (value->find("IBM") != std::string::npos)
+ {
+ aResp->res.jsonValue["ProcessorArchitecture"] =
+ "Power";
+ aResp->res.jsonValue["InstructionSet"] = "PowerISA";
+ }
}
}
else if (property.first == "ProcessorMaxSpeed")