Remove Legacy code from P10 and future code
Remove Occ control code that supports older hardware models P8 and P9.
This is in preparation for occ control taking over occ poll handling.
Change-Id: Iff99ac8ff3a3fe6e9a6af994b20b06793ead50fc
Signed-off-by: Sheldon Bailey <baileysh@us.ibm.com>
diff --git a/occ_pass_through.cpp b/occ_pass_through.cpp
index 61e9ad3..48f58cb 100644
--- a/occ_pass_through.cpp
+++ b/occ_pass_through.cpp
@@ -22,16 +22,9 @@
using namespace sdbusplus::org::open_power::OCC::Device::Error;
PassThrough::PassThrough(
- const char* path
-#ifdef POWER10
- ,
- std::unique_ptr<open_power::occ::powermode::PowerMode>& powerModeRef
-#endif
- ) :
- Iface(utils::getBus(), path), path(path),
-#ifdef POWER10
- pmode(powerModeRef),
-#endif
+ const char* path,
+ std::unique_ptr<open_power::occ::powermode::PowerMode>& powerModeRef) :
+ Iface(utils::getBus(), path), path(path), pmode(powerModeRef),
devicePath(OCC_DEV_PATH + std::to_string((this->path.back() - '0') + 1)),
occInstance(this->path.back() - '0'),
activeStatusSignal(
@@ -132,7 +125,6 @@
bool PassThrough::setMode(const uint8_t mode, const uint16_t modeData)
{
-#ifdef POWER10
SysPwrMode newMode = SysPwrMode(mode);
if (!pmode)
@@ -161,12 +153,6 @@
lg2::info("PassThrough::setMode() Setting Power Mode {MODE} (data: {DATA})",
"MODE", uint8_t(newMode), "DATA", modeData);
return pmode->setMode(newMode, modeData);
-#else
- lg2::debug(
- "PassThrough::setMode() No support to setting Power Mode {MODE} (data: {DATA})",
- "MODE", mode, "DATA", modeData);
- return false;
-#endif
}
// Called at OCC Status change signal