[cpusensor] pingTimer and creationTimer are conflict??

John Wang wangzqbj at inspur.com
Tue Apr 2 17:14:58 AEDT 2019


Hi Jae,

When two cpus are configured in the entity-manager and there is only one
cpu on the motherboard, the cpusensor service cannot expose cpu sensor
information to dbus.
Before [this change](
https://gerrit.openbmc-project.xyz/c/openbmc/dbus-sensors/+/18963), cpu
sensor information can be exposed to dbus.

By checking the code,I found that pingTimer causes detectCpu to be executed
every 1s, and the detectCpu function calls
creationTimer.expires_from_now(3s/5s), which causes the callback of
creationTimer to only enter the cancel
state(boost::asio::error::operation_aborted).

Only when all the cpu configured in the entity-mangaer are detected will
stop pinging.

Is this a bug ?

Regards

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20190402/745fa36b/attachment.htm>


More information about the openbmc mailing list