diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-05-08 07:11:22 -0500 |
---|---|---|
committer | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-06-13 08:18:25 -0500 |
commit | fd358d18b8b7f73204cc482f3b29f49a50fda214 (patch) | |
tree | b231ebe86d27090357161ab7ce68c8ba2fb6bacd /occ_pass_through.cpp | |
parent | d13694a0658a9fc5914b06eadcaabe9d671f70b2 (diff) | |
download | openpower-occ-control-fd358d18b8b7f73204cc482f3b29f49a50fda214.tar.gz openpower-occ-control-fd358d18b8b7f73204cc482f3b29f49a50fda214.zip |
Create OCC pass-through objects
Create OCC pass-through d-bus objects when corresponding CPU objects are
created in the inventory.
Resolves openbmc/openbmc#1450.
Change-Id: I8da879f51ebef8dcc3d25358def81c5e0dce0617
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'occ_pass_through.cpp')
-rw-r--r-- | occ_pass_through.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/occ_pass_through.cpp b/occ_pass_through.cpp index 7027d65..911dd85 100644 --- a/occ_pass_through.cpp +++ b/occ_pass_through.cpp @@ -6,7 +6,6 @@ #include <phosphor-logging/elog.hpp> #include <org/open_power/OCC/PassThrough/error.hpp> #include "occ_pass_through.hpp" -#include "occ_finder.hpp" #include "elog-errors.hpp" namespace open_power { @@ -15,30 +14,6 @@ namespace occ namespace pass_through { -void run() -{ - auto bus = sdbusplus::bus::new_default(); - sdbusplus::server::manager::manager objManager(bus, - OCC_PASS_THROUGH_ROOT); - - std::vector<std::unique_ptr<PassThrough>> objects; - auto occs = open_power::occ::finder::get(); - - for (const auto& occ : occs) - { - auto occPassThrough = object(occ); - objects.emplace_back( - std::make_unique<PassThrough>(bus, occPassThrough.c_str())); - } - bus.request_name(OCC_PASS_THROUGH_BUSNAME); - - while (true) - { - bus.process_discard(); - bus.wait(); - } -} - PassThrough::PassThrough( sdbusplus::bus::bus& bus, const char* path) : |