diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-02-24 00:16:05 +0530 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2017-03-29 13:29:18 +0000 |
commit | 917454bb139be75f656ddfa451e5036fc24ce640 (patch) | |
tree | e8e55b7539804d070257e8425df777a29e994783 /softoff/softoff.hpp | |
parent | 0661beb1dd93711ce684450997d21da8b64c729d (diff) | |
download | phosphor-host-ipmid-917454bb139be75f656ddfa451e5036fc24ce640.tar.gz phosphor-host-ipmid-917454bb139be75f656ddfa451e5036fc24ce640.zip |
Generate errorlog when timer expires waiting for host to shutdown
Fixes openbmc/openbmc#930
Change-Id: I1780071d5cbef23df88c17fe131098f54f54f25f
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'softoff/softoff.hpp')
-rw-r--r-- | softoff/softoff.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/softoff/softoff.hpp b/softoff/softoff.hpp index da88fc5..f0e992c 100644 --- a/softoff/softoff.hpp +++ b/softoff/softoff.hpp @@ -63,6 +63,17 @@ class SoftPowerOff : public sdbusplus::server::object::object< */ HostResponse responseReceived(HostResponse value) override; + /** @brief Using the base class's getter method */ + using Base::SoftPowerOff::responseReceived; + + /** @brief Calls to start a timer + * + * @param[in] usec - Time in microseconds + * + * @return Success or exception thrown + */ + int startTimer(const std::chrono::microseconds& usec); + private: // Need this to send SMS_ATTN // TODO : Switch over to using mapper service in a different patch |