Trigger periodic OCC POLL commands when the OCCs are running
The OCC control app will periodically trigger kernel poll commands
to the OCC when the OCCs are active.
Code change also adds an interface to allow any OCC command to be
sent to an OCC. The pass-through interface was also updated to
use the new command object.
Tested: I did several IPLs on multiple Rainier systems to verify
the changes. I forced OCC resets to ensure polling stopped when
OCCs were disabled and restarted after it came out of reset.
Change-Id: I56970e781a988bb94f17ac38173ace8a68bb5fad
Signed-off-by: Chris Cain <cjcain@us.ibm.com>
diff --git a/Makefile.am b/Makefile.am
index 28c025f..babbe6c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,6 +8,7 @@
occ_events.hpp \
occ_finder.hpp \
occ_presence.hpp \
+ occ_command.hpp \
utils.hpp
noinst_LTLIBRARIES = libocc_control.la
@@ -24,13 +25,19 @@
occ_device.cpp \
occ_errors.cpp \
occ_presence.cpp \
+ occ_command.cpp \
powercap.cpp \
org/open_power/OCC/Device/error.cpp \
occ_finder.cpp \
i2c_occ.cpp \
utils.cpp
-openpower_occ_control_LDADD = libocc_control.la -lstdc++fs
+openpower_occ_control_LDADD = \
+ libocc_control.la \
+ -lstdc++fs \
+ $(SDBUSPLUS_LIBS) \
+ $(SDEVENTPLUS_LIBS) \
+ $(FMT_LIBS)
BUILT_SOURCES = org/open_power/OCC/Device/error.hpp \
org/open_power/OCC/Device/error.cpp \