mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
kernel: finish work of removing interruptible mutexes
This commit is contained in:
@@ -11,7 +11,7 @@ static MUTEX_DEFINE(allocate_mutex);
|
||||
static SPINLOCK_DEFINE(tree_lock);
|
||||
|
||||
topology_node_t *topology_create_node(void) {
|
||||
MUTEX_ACQUIRE(&allocate_mutex, false);
|
||||
MUTEX_ACQUIRE(&allocate_mutex);
|
||||
if (unlikely(slab_cache == NULL)) {
|
||||
slab_cache = slab_newcache(sizeof(topology_node_t), 0, NULL, NULL);
|
||||
__assert(slab_cache);
|
||||
|
||||
Reference in New Issue
Block a user