diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-08-05 14:33:53 -0500 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-08-09 17:46:06 +0200 |
commit | 0284f62db2e656044ba1ed39ddc3ab4ae89509af (patch) | |
tree | e0cbec97cef447bc1cbd6ef12517f06e5bbcb01b /util/dtd_parser | |
parent | 1bf00079c15c7afff5f82dd0f84e4372ef3c77b2 (diff) |
drivers/elog: sync events to non-volatile storage last
There were multiple paths where writes and erases of the flash
were being done. Instead provide a single place for synchronizing
the non-volatile storage from the mirrored event log. This
synchronization point resides as the very last thing done when
adding an event to the log. The shrinking check happens before
committing the event to non-volatile storage so there's no need
to attempt a shrink in elog_init() because any previous events
committed already honored the full threshold.
BUG=chrome-os-partner:55932
Change-Id: Iaec9480eb3116fdc2f823c25d028a4cfb65a6eaf
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16099
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'util/dtd_parser')
0 files changed, 0 insertions, 0 deletions