Home
last modified time | relevance | path

Searched hist:81957841 (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-state-manager/
H A Dchassis_state_manager.hpp81957841 Wed Jul 11 10:37:12 CDT 2018 Matt Spinler <spinler@us.ibm.com> Minor power on hours serialization changes

In preparation for the chassis manager class persisting
another data member, some changes need to be made to the
POH serialization code to make it consistent with saving
individual data members in separate files.

1) Remove the load()/save() functions from the Chassis class.
Cereal only requires those when archiving a custom object,
like when the Host class uses oarchive(*this).

2) Remove the Cereal version define from the Chassis class.
That is also only used when a custom object is serialized,
and in fact the version wasn't being stored in the serialized
data anyway.

3) Rename the POH serialization/deserialization functions to be
specifically for the POH counter.

These don't affect how or where POH value is persisted.

Tested: Verify the POH value still increments and survives
reboots.

Change-Id: I065e1a24e018b66f284c6a00f9a34d24eaaedc36
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
H A Dchassis_state_manager.cpp81957841 Wed Jul 11 10:37:12 CDT 2018 Matt Spinler <spinler@us.ibm.com> Minor power on hours serialization changes

In preparation for the chassis manager class persisting
another data member, some changes need to be made to the
POH serialization code to make it consistent with saving
individual data members in separate files.

1) Remove the load()/save() functions from the Chassis class.
Cereal only requires those when archiving a custom object,
like when the Host class uses oarchive(*this).

2) Remove the Cereal version define from the Chassis class.
That is also only used when a custom object is serialized,
and in fact the version wasn't being stored in the serialized
data anyway.

3) Rename the POH serialization/deserialization functions to be
specifically for the POH counter.

These don't affect how or where POH value is persisted.

Tested: Verify the POH value still increments and survives
reboots.

Change-Id: I065e1a24e018b66f284c6a00f9a34d24eaaedc36
Signed-off-by: Matt Spinler <spinler@us.ibm.com>