#
cea510b7 |
| 07-Mar-2023 |
Ed Tanous <edtanous@google.com> |
Add missing include
Change-Id: If0e63127658840d98b9e5972a9bc13a7a351a83c Signed-off-by: Ed Tanous <edtanous@google.com>
|
#
744e9a98 |
| 28-Feb-2023 |
Ed Tanous <edtanous@google.com> |
Change io_service to io_context
This was renamed a while back in boost to be compliant with the std::executors proposal.
Change-Id: Id8cda0486beed09984e570393921bd95835e5980 Signed-off-by: Ed Tanou
Change io_service to io_context
This was renamed a while back in boost to be compliant with the std::executors proposal.
Change-Id: Id8cda0486beed09984e570393921bd95835e5980 Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
439b9c3a |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I73186ee02f4d3c85736516fa0bc036c76262e16e
show more ...
|
#
99e8f9df |
| 09-Jan-2022 |
Andrei Kartashev <a.kartashev@yadro.com> |
refactor power restore controller
Currently PowerRestorePolicy handling code uses two undocumented interfaces: * `xyz.openbmc_project.Control.Power.RestoreDelay` * `xyz.openbmc_project.Common.ACBoot
refactor power restore controller
Currently PowerRestorePolicy handling code uses two undocumented interfaces: * `xyz.openbmc_project.Control.Power.RestoreDelay` * `xyz.openbmc_project.Common.ACBoot`
Power Restore Delay seems to be logical part of `xyz.openbmc_project.Control.Power.RestorePolicy` interface and has been moved there.
ACBoot depends on some custom logic that can be found only in Intel-BMC fork.
This commit reorganize PowerRestorePolicy-related code to be more clear and flexible, fixes interface for RestoreDelay. Use of ACBoot feature is now optional and can be compile-time enabled.
Tested: Model power loss event with Off, On and Restore policy, verify, that power restored as expected. Test On policy with Delay set to 300000000 - ensure, power on delayed by 5 minutes. Test with ACBoot interface emulated. Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com> Change-Id: Id8b42d2085f44418e02a7f52836cc1a6f55f50db
show more ...
|
#
50fe8ee3 |
| 04-Jan-2022 |
Andrei Kartashev <a.kartashev@yadro.com> |
introduce PersistentState manager
This commit brings new mechanism to store application state over system reboot. State is saved to json file and restored on application startup by easy to use class
introduce PersistentState manager
This commit brings new mechanism to store application state over system reboot. State is saved to json file and restored on application startup by easy to use class.
Currently only PowerState is managed by this class but more states can be added in future.
Tested: verify that power state saved to file and restored on startup Change-Id: I91fb46f262827dda89f438eefea38d59e02ba25c Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
show more ...
|