coreboot-kgpe-d16/src/drivers
Gabe Black 0bf1febed8 elog: Get rid of the descriptor type and some unnecessary wrappers
There was always exactly one elog descriptor declared and initialized, but its
contents were being accessed through a pointer that was passed back and forth
between functions instead of being accessed directly. This made the code more
verbose than it needed to be and harder to follow. To address this the
descriptor type was eliminated, its contents were turned into individual
global variables, and various functions were adjusted to no longer take the
descriptor as an argument.

Similarly, the code was more verbose and complicated than it needed to be
because of several wrapper functions which wrapped a single line of code which
called an underlying function with particular arguments and were only used
once. This makes it harder to tell what the code is doing because the call to
the real function you may already be familiar with is obscured behind a
new function you've never seen before. It also adds one more text to the file
as a whole while providing at best a marginal benefit. Those functions were
removed and their callers now call their contents directly.

Built and booted on Link. Ran mosys eventlog list. Cleared the event log
and ran mosys eventlog list again. Added 2000 events and ran mosys eventlog
list. Cleared the log again and ran mosys eventlog list.

Change-Id: I4f5f6b9f4f508548077b7f5a92f4322db99e01ca
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/49310
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/4245
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
2013-12-02 15:18:06 +01:00
..
ati drivers: Fix spelling 2013-07-10 20:18:15 +02:00
dec GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
elog elog: Get rid of the descriptor type and some unnecessary wrappers 2013-12-02 15:18:06 +01:00
emulation qemu: minor bochs cleanups 2013-11-26 09:14:57 +01:00
generic x86 I/O APIC: Make functions `io_apic_{read,write}()` public 2013-05-07 22:40:10 +02:00
i2c drivers: Fix spelling 2013-07-10 20:18:15 +02:00
ics Get rid of drivers class 2012-11-27 22:00:49 +01:00
ipmi Get rid of drivers class 2012-11-27 22:00:49 +01:00
maxim max77802: add header for max77802 PMIC 2013-07-10 22:35:26 +02:00
oxford Rename cpu/x86/car.h to arch/early_variables.h 2013-10-13 12:47:05 +02:00
parade parade: Add a driver for the parade ps8625. 2013-07-10 23:20:39 +02:00
pc80 pc80/mc146818rtc: Return an error code rather than an integer 2013-11-25 23:59:59 +01:00
realtek GPLv2 notice: Unify all files to just use one space in »MA 02110-1301« 2013-03-01 10:16:08 +01:00
sil Get rid of drivers class 2012-11-27 22:00:49 +01:00
spi SPI: Support STMicro partial page write 2013-08-23 05:07:11 +02:00
ti [2/2] tps65090: re-factor for coreboot 2013-04-10 17:34:19 +02:00
trident Get rid of drivers class 2012-11-27 22:00:49 +01:00
Kconfig parade: Add a driver for the parade ps8625. 2013-07-10 23:20:39 +02:00
Makefile.inc Fix whitespace leaked into tree 2013-09-17 21:04:35 +02:00