Use RW spin locks
All checks were successful
Build documentation / build-and-deploy (push) Successful in 39s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 39s
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#include <libk/rbtree.h>
|
||||
#include <libk/std.h>
|
||||
#include <proc/proc.h>
|
||||
#include <sync/rw_spin_lock.h>
|
||||
|
||||
#define CPUS_MAX 32
|
||||
|
||||
@@ -29,7 +30,7 @@ struct cpu {
|
||||
atomic_int nesting;
|
||||
} irq_ctx;
|
||||
|
||||
spin_lock_t lock;
|
||||
rw_spin_lock_t lock;
|
||||
|
||||
struct rb_node_link* proc_run_q;
|
||||
struct proc* proc_current;
|
||||
|
||||
Reference in New Issue
Block a user