diff options
author | Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com> | 2018-10-12 05:11:51 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-10-15 20:02:37 -0500 |
commit | 223824211e639cc7930cee724dff73bbb453853a (patch) | |
tree | 7a0bc45ba630d4c52c7a240d3c144a68889f5a08 | |
parent | f3a2693e80a042b77888555106aae320cc400aca (diff) | |
download | talos-hostboot-223824211e639cc7930cee724dff73bbb453853a.tar.gz talos-hostboot-223824211e639cc7930cee724dff73bbb453853a.zip |
Additional field to indicate sync in attribute metadata.
An additional field added to attribute metadata to indicate
whether sync is force disabled. This is used to determine
whether the attribute needs to be synched on updates during
runtime.
Change-Id: I9a7ca395e43acd06867ad0c0a901bcfd7f5ec9a9
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
CQ: SW447778
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67408
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: ARAVIND T. NAIR <aravindnair@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rwxr-xr-x | src/usr/targeting/common/xmltohb/xmltohb.pl | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/usr/targeting/common/xmltohb/xmltohb.pl b/src/usr/targeting/common/xmltohb/xmltohb.pl index 60fe126d3..c3f8c76f0 100755 --- a/src/usr/targeting/common/xmltohb/xmltohb.pl +++ b/src/usr/targeting/common/xmltohb/xmltohb.pl @@ -3529,18 +3529,18 @@ sub writeAttrMetadataMapCFile{ } if($finalAttrhash{$key}->{persistency} eq "non-volatile") { - print $outFile " P3_PERSISTENCY) ),\n"; + print $outFile " P3_PERSISTENCY,"; } elsif(($finalAttrhash{$key}->{persistency} eq "semi-non-volatile-zeroed") || ($finalAttrhash{$key}->{persistency} eq "semi-non-volatile")) { - print $outFile " P1_PERSISTENCY) ),\n"; + print $outFile " P1_PERSISTENCY,"; } elsif(($finalAttrhash{$key}->{persistency} eq "volatile") || ($finalAttrhash{$key}->{persistency} eq "volatile-zeroed")) { - print $outFile " P0_PERSISTENCY) ),\n"; + print $outFile " P0_PERSISTENCY,"; } else { @@ -3548,6 +3548,15 @@ sub writeAttrMetadataMapCFile{ "Persistency[$finalAttrhash{$key}->{persistency}] for" . "attribute [$key]"); } + + if ($finalAttrhash{$key}->{id} ~~ @nonSyncAttributes) + { + print $outFile " true) ),\n"; + } + else + { + print $outFile " false) ),\n"; + } } } print $outFile " };\n"; @@ -3653,12 +3662,15 @@ struct attrMetadataStr uint32_t size; bool readWriteable; const char* persistency; + bool noSync; attrMetadataStr() : - size(0), readWriteable(false), persistency(NULL) {} + size(0), readWriteable(false), persistency(NULL), noSync(false) {} - attrMetadataStr(uint32_t i_size, bool i_rw, const char* i_persistency) : - size(i_size), readWriteable(i_rw), persistency(i_persistency) {} + attrMetadataStr(uint32_t i_size, bool i_rw, const char* i_persistency, \ + bool i_sync) : + size(i_size), readWriteable(i_rw), persistency(i_persistency),\ + noSync(i_sync) {} }; /* |