cpuinfo_utils: Change OS state busname and objpath
Change the busname and object path of OS state interface.
This commit relies on the patch below:
[1] https://gerrit.openbmc.org/c/openbmc/x86-power-control/+/69589
Change-Id: Ia22fd05bf37364146e323c35c6fdcedf777b4461
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/src/cpuinfo_utils.cpp b/src/cpuinfo_utils.cpp
index 5c46585..82277ab 100644
--- a/src/cpuinfo_utils.cpp
+++ b/src/cpuinfo_utils.cpp
@@ -293,8 +293,8 @@
// xyz.openbmc_project.State.OperatingSystem. According to x86-power-control
// repo, OperatingSystemState should return "standby" once the POST is
// asserted.
- subscribeToProperty("xyz.openbmc_project.State.OperatingSystem",
- "/xyz/openbmc_project/state/os",
+ subscribeToProperty("xyz.openbmc_project.State.Host0",
+ "/xyz/openbmc_project/state/host0",
"xyz.openbmc_project.State.OperatingSystem.Status",
"OperatingSystemState", updateOsState);