aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/elog/elog_internal.h
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-04-24 23:31:41 -0700
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2013-12-02 15:17:53 +0100
commit84a93d1bc34287f2208e40a704fa48c091182cd5 (patch)
treeac48f5435545c99e9bc73a5f0116da7a94e7eb01 /src/drivers/elog/elog_internal.h
parent455c68ed0dca6cc5c8df4131c2fcf314e3002f56 (diff)
elog: Stream line the elog driver.
The elog driver's design was a bit more elaborate than it really needed to be since it no longer had to keep track of multiple copies of the log in flash and also in memory. This change streamlines it by removing unnecessary compartmentalization of some bits of code, and some variables which tracked the last entry added which were never used. Built and booted on Link. Ran mosys eventlog list. Added 2000 events to the event log and ran mosys eventlog list again. Cleared the log by echoing 1 into /sys/firmware/gsmi/clear_eventlog and ran mosys eventlog list. Change-Id: I7d4cdebf2f5b1f6bb1fc70e65eca18f71b124b18 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/49309 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/4244 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.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/drivers/elog/elog_internal.h b/src/drivers/elog/elog_internal.h
index 799e7e2311..e83df5f089 100644
--- a/src/drivers/elog/elog_internal.h
+++ b/src/drivers/elog/elog_internal.h
@@ -76,8 +76,6 @@ struct elog_descriptor {
u16 total_size;
u16 data_size;
u16 next_event_offset;
- u16 last_event_offset;
- u16 last_event_size;
u16 event_count;
};