Searched hist:"1 cd4248d4afa664b94411dd57e7e686f944dfafc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/phosphor-time-manager/ |
H A D | manager.hpp | diff 1cd4248d4afa664b94411dd57e7e686f944dfafc Mon Jul 23 21:40:59 CDT 2018 Lei YU <mine260309@gmail.com> Fix un-initialized time owner/mode in manager
The timeOwner/Mode in Manager class has no init value, and it is initialized with the cached time owner/mode in file system.
In most of time it is OK because there is cached time owner/mode. But if the BMC does a factory reset, the cached values are cleaned up, and in next reboot the timeOwner/Mode will not be initialized at all.
The fix is to give default time owner/mode, so when BMC comes from factory reset it uses default time settings.
Tested: Verify the timeOwner/Mode have correct init values after factory reset.
Change-Id: Ib1a8fba4d758f33ed09a7afdc9ed684867fca1c5
|