| Gilbert Chen | 6c7fed4 | 2022-02-22 15:40:17 +0000 | [diff] [blame^] | 1 | #include "platform_manager.hpp" |
| 2 | |||||
| 3 | #include "terminus_manager.hpp" | ||||
| 4 | |||||
| 5 | #include <phosphor-logging/lg2.hpp> | ||||
| 6 | |||||
| 7 | PHOSPHOR_LOG2_USING; | ||||
| 8 | |||||
| 9 | namespace pldm | ||||
| 10 | { | ||||
| 11 | namespace platform_mc | ||||
| 12 | { | ||||
| 13 | |||||
| 14 | exec::task<int> PlatformManager::initTerminus() | ||||
| 15 | { | ||||
| 16 | for (auto& [tid, terminus] : termini) | ||||
| 17 | { | ||||
| 18 | if (terminus->initialized) | ||||
| 19 | { | ||||
| 20 | continue; | ||||
| 21 | } | ||||
| 22 | terminus->initialized = true; | ||||
| 23 | } | ||||
| 24 | co_return PLDM_SUCCESS; | ||||
| 25 | } | ||||
| 26 | |||||
| 27 | } // namespace platform_mc | ||||
| 28 | } // namespace pldm | ||||