summaryrefslogtreecommitdiffstats
path: root/sensordatahandler.cpp
diff options
context:
space:
mode:
authorDhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>2017-09-14 07:01:48 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-09-26 13:42:39 +0000
commitf915f85070d87a13ce9cabe8f27e2be64e507ef0 (patch)
treee245f9b0fdee1a0b9c9e2d8ac92e77b4867172a4 /sensordatahandler.cpp
parent1bf3b749e9217f03fbc55bbb45802df9e715e3b0 (diff)
downloadphosphor-host-ipmid-f915f85070d87a13ce9cabe8f27e2be64e507ef0.tar.gz
phosphor-host-ipmid-f915f85070d87a13ce9cabe8f27e2be64e507ef0.zip
Use static path for inventory manager
During boot after sending the inventory details host is asking for the a sensor value, that request is getting blocked because the ipmid on BMC is busy with processing the inventory data. Adding an optimization in processing inventory, which will reduce the wait. Change-Id: I490c98220e0244fb6c766432aa1ea8cf25ae1502 Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Diffstat (limited to 'sensordatahandler.cpp')
-rw-r--r--sensordatahandler.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/sensordatahandler.cpp b/sensordatahandler.cpp
index aca81c7..1776ec7 100644
--- a/sensordatahandler.cpp
+++ b/sensordatahandler.cpp
@@ -286,11 +286,8 @@ IpmiUpdateData makeDbusMsg(const std::string& updateInterface,
sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()};
using namespace std::string_literals;
- std::string dbusService;
- std::string dbusPath;
-
- std::tie(dbusPath, dbusService) = getServiceAndPath(bus,
- updateInterface);
+ static const auto dbusPath = "/xyz/openbmc_project/inventory"s;
+ std::string dbusService = ipmi::getService(bus, updateInterface, dbusPath);
return bus.new_method_call(dbusService.c_str(),
dbusPath.c_str(),
OpenPOWER on IntegriCloud