coreboot/src
Richard Spiegel 51895d1838 soc/amd/common/block/pi/heapmanager.c: Simplify code
There are sections of code that are almost identical and they can be
converted to auxiliary procedures. For allocating heap, 3 sizes (the
buffer size of currently being examined node, the buffer size of the
current best fit node and the minimum size for a buffer that will need
to be split if selected as the best fit) are used often so they could
be stored in temporary variables. These 2 changes will make code shorter,
with less indentation problems and overall easier to read. The actual
logic of the code is not changed.

BUG=b:77940747
TEST=Build and boot grunt.

Change-Id: Ib4c69981eab7452228ccae9ed9bc288c8baceffe
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/25703
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-04-19 15:05:08 +00:00
..
acpi arch/x86: Add common AMD ACPI hardware definitions 2017-11-10 19:15:38 +00:00
arch include/memory_info.h: Change serial number field from 5 bytes to 4 2018-04-12 15:21:45 +00:00
commonlib timestamps: Add timestamps around the vbios load & init 2018-03-08 18:14:54 +00:00
console console: Expose vsnprintf 2018-04-09 08:18:16 +00:00
cpu Revert "model_206ax: Use parallel MP init" 2018-04-11 11:49:05 +00:00
device device/dram/ddr3: improve XMP support 2018-04-16 08:46:23 +00:00
drivers drivers/pc80/tpm: Add some optional delay to tis_readresponse() 2018-04-16 15:47:53 +00:00
ec chromeec: fix an uninitialized local variable 2018-04-01 19:50:30 +00:00
include cbfs: Add cbfs_boot_load_file() 2018-04-17 10:46:13 +00:00
lib cbfs: Add cbfs_boot_load_file() 2018-04-17 10:46:13 +00:00
mainboard mb/google/octopus: Select DRIVERS_I2C_HID 2018-04-19 05:24:40 +00:00
northbridge nb/intel/x4x/rcven.c: Change the verbosity of some messages 2018-04-17 10:41:57 +00:00
security vboot: Add support for reading GBB flags 2018-04-09 09:27:50 +00:00
soc soc/amd/common/block/pi/heapmanager.c: Simplify code 2018-04-19 15:05:08 +00:00
southbridge Revert "model_206ax: Use parallel MP init" 2018-04-11 11:49:05 +00:00
superio Intel i3100 boards & chips: Remove - using LATE_CBMEM_INIT 2018-01-15 23:25:12 +00:00
vendorcode vendorcode/amd/pi/00670F00: Remove unused headers 2018-04-16 08:35:05 +00:00
Kconfig Timestamps: Add option to print timestamps to debug console 2018-03-09 17:16:21 +00:00