aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/elog/elog_internal.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-04-24 04:11:40 -0700
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2013-12-02 15:16:44 +0100
commit331eb084bb76cdbd3b13dc6661bb70a58abd35e1 (patch)
tree16419a5bf22c291efe567a3cbba2db14e6f65476 /src/drivers/elog/elog_internal.h
parentbfae4aa768ca376e2b5b216b57b33600e2a8a094 (diff)
elog: Eliminate the second in memory copy of the event log.
The event log driver keeps two copies of the event log in memory, one to take the place of the historically memory mapped image of flash which is now read and written manually, and one originally intended to be an in memory cache of flash. Since both are now just copies in memory, there's no value in having them both and keeping them in sync. Built and booted on Link. Ran mosys eventlog list. Added 2000 events to the log and ran mosys eventlog list again. Cleared the log by echoing a 1 into /sys/firmware/gsmi/clear_eventlog and ran mosys eventlog list again. Change-Id: Ibed62a10c78884849726aa15ec795ab2914afc35 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/49306 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-on: http://review.coreboot.org/4241 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/drivers/elog/elog_internal.h')
-rw-r--r--src/drivers/elog/elog_internal.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/drivers/elog/elog_internal.h b/src/drivers/elog/elog_internal.h
index 67026af383..799e7e2311 100644
--- a/src/drivers/elog/elog_internal.h
+++ b/src/drivers/elog/elog_internal.h
@@ -47,12 +47,6 @@ struct event_header {
/* SMBIOS Type 15 related constants */
#define ELOG_HEADER_TYPE_OEM 0x88
-typedef enum elog_descriptor_type {
- ELOG_DESCRIPTOR_UNKNOWN,
- ELOG_DESCRIPTOR_MEMORY,
- ELOG_DESCRIPTOR_FLASH,
-} elog_descriptor_type;
-
typedef enum elog_area_state {
ELOG_AREA_UNDEFINED, /* Initial boot strap state */
ELOG_AREA_EMPTY, /* Entire area is empty */
@@ -73,7 +67,6 @@ typedef enum elog_event_buffer_state {
* Internal handler for event log buffers
*/
struct elog_descriptor {
- elog_descriptor_type type;
elog_area_state area_state;
elog_header_state header_state;
elog_event_buffer_state event_buffer_state;