summaryrefslogtreecommitdiffstats
path: root/src/Kconfig
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-09-13 14:24:55 -0600
committerRaul Rangel <rrangel@chromium.org>2021-10-05 22:39:16 +0000
commitc842c59b3eb8f9df42779bf9bf8fdd2c4136319c (patch)
treebb99572c7ee9c1a6af75671add54acad13d89387 /src/Kconfig
parentb2346a56f135924214761f55e6a3b9ff8056dee7 (diff)
downloadcoreboot-c842c59b3eb8f9df42779bf9bf8fdd2c4136319c.tar.gz
coreboot-c842c59b3eb8f9df42779bf9bf8fdd2c4136319c.tar.bz2
coreboot-c842c59b3eb8f9df42779bf9bf8fdd2c4136319c.zip
lib/thread: Switch to using CPU_INFO_V2
CPU_INFO_V2 changes the behavior of cpu_info(). There is now only 1 cpu_info struct per cpu. This means that we no longer need to allocate it at the top of each threads stack. We can now in theory remove the CONFIG_STACK_SIZE alignment on the thread stack sizes. We can also in theory use threads in SMM if you are feeling venturesome. BUG=b:194391185, b:179699789 TEST=Perform reboot stress test on guybrush with COOP_MULTITASKING enabled. Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I5e04d254a00db43714ec60ebed7c4aa90e23190a Reviewed-on: https://review.coreboot.org/c/coreboot/+/57628 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Peers <epeers@google.com> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/Kconfig')
-rw-r--r--src/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Kconfig b/src/Kconfig
index 09bc22dad16c..ea05215bdd49 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -677,7 +677,7 @@ config TIMER_QUEUE
config COOP_MULTITASKING
def_bool n
- depends on TIMER_QUEUE && ARCH_X86
+ depends on TIMER_QUEUE && ARCH_X86 && CPU_INFO_V2
help
Cooperative multitasking allows callbacks to be multiplexed on the
main thread of ramstage. With this enabled it allows for multiple