summaryrefslogtreecommitdiff
path: root/src/include/thread.h
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-10-08 13:10:38 -0600
committerFelix Held <felix-coreboot@felixheld.de>2021-10-18 12:36:30 +0000
commitc2c38f5fdea0579d1a64ce63c00737bbe3ca5759 (patch)
tree0372610e9b701006bb6c9935b474bd8671f97e17 /src/include/thread.h
parent12ae850dfc10709f8c3bcf92ab7ba1397eb4ae43 (diff)
arch/x86,cpu/x86,lib/thread: Remove usage of cpu_info from lib/thread
We only ever start and execute threads on the BSP. By explicitly checking to see if the CPU is the BSP we can remove the dependency on cpu_info. With this change we can in theory enable threads in all stages. BUG=b:194391185, b:179699789 TEST=Boot guybrush to OS and verify coop multithreading still works Suggested-by: Julius Werner <jwerner@chromium.org> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: Iea4622d52c36d529e100b7ea55f32c334acfdf3e Reviewed-on: https://review.coreboot.org/c/coreboot/+/58199 Reviewed-by: Karthik Ramasubramanian <kramasub@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/thread.h')
-rw-r--r--src/include/thread.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/include/thread.h b/src/include/thread.h
index cb085b5509..62c6283acf 100644
--- a/src/include/thread.h
+++ b/src/include/thread.h
@@ -73,11 +73,6 @@ void thread_coop_disable(void);
void thread_mutex_lock(struct thread_mutex *mutex);
void thread_mutex_unlock(struct thread_mutex *mutex);
-static inline void thread_init_cpu_info_non_bsp(struct cpu_info *ci)
-{
- ci->thread = NULL;
-}
-
/* Architecture specific thread functions. */
asmlinkage void switch_to_thread(uintptr_t new_stack, uintptr_t *saved_stack);
/* Set up the stack frame for a new thread so that a switch_to_thread() call
@@ -96,8 +91,6 @@ static inline int thread_yield_microseconds(unsigned int microsecs)
}
static inline void thread_coop_enable(void) {}
static inline void thread_coop_disable(void) {}
-struct cpu_info;
-static inline void thread_init_cpu_info_non_bsp(struct cpu_info *ci) { }
static inline void thread_mutex_lock(struct thread_mutex *mutex) {}