aboutsummaryrefslogtreecommitdiff
path: root/src/include/thread.h
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2021-07-15 17:34:05 -0600
committerRaul Rangel <rrangel@chromium.org>2021-07-18 15:13:50 +0000
commit9ba36abdc542b881df7e0f0c5883a9dab1b9bc50 (patch)
tree8dd44e750eefa1ab7932ed547005b0b33d1d3e9f /src/include/thread.h
parentbe60a0ddb0494e5a3becca832d706076820642f7 (diff)
lib/thread: Rename thread_cooperate and thread_prevent_coop
Renaming them to thread_coop_disable()/thread_coop_enable() makes them sound like a pair. BUG=b:179699789 TEST=Boot guybrush to OS Suggested-by: Julius Werner <jwerner@chromium.org> Signed-off-by: Raul E Rangel <rrangel@chromium.org> Change-Id: I1d70c18965f53e733e871ca03107270612efa4fc Reviewed-on: https://review.coreboot.org/c/coreboot/+/56357 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com> 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/thread.h b/src/include/thread.h
index 160173e7e7..293a666dbd 100644
--- a/src/include/thread.h
+++ b/src/include/thread.h
@@ -50,8 +50,8 @@ int thread_yield_microseconds(unsigned int microsecs);
* not occur. The critical sections can be nested. Just make sure the methods
* are used in pairs.
*/
-void thread_cooperate(void);
-void thread_prevent_coop(void);
+void thread_coop_enable(void);
+void thread_coop_disable(void);
static inline void thread_init_cpu_info_non_bsp(struct cpu_info *ci)
{
@@ -81,8 +81,8 @@ static inline int thread_yield_microseconds(unsigned int microsecs)
{
return -1;
}
-static inline void thread_cooperate(void) {}
-static inline void thread_prevent_coop(void) {}
+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) { }
#endif