blob: e1d7f96140b83510b81fbd62d3cc2898df5c2949 [file] [log] [blame]
Gilbert Chen6c7fed42022-02-22 15:40:17 +00001#include "platform_manager.hpp"
2
3#include "terminus_manager.hpp"
4
5#include <phosphor-logging/lg2.hpp>
6
7PHOSPHOR_LOG2_USING;
8
9namespace pldm
10{
11namespace platform_mc
12{
13
14exec::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