lib/thread,lib/hardwaremain: Lazy initialize threads
By lazy initializing the threads, if a stage doesn't use them, they will be garbage collected. BUG=b:179699789 TEST=Boot guybrush to the OS and verify threads worked Suggested-by: Julius Werner <jwerner@chromium.org> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I7208ffb5dcda63d916bc6cfdea28d92a62435da6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56532 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Patrick Georgi
parent
7db7ee984c
commit
a2d83c68a3
@ -456,7 +456,6 @@ void main(void)
|
||||
|
||||
/* Handoff sleep type from romstage. */
|
||||
acpi_is_wakeup_s3();
|
||||
threads_initialize();
|
||||
|
||||
/* Initialise GNVS early. */
|
||||
if (CONFIG(ACPI_SOC_NVS))
|
||||
|
Reference in New Issue
Block a user