aboutsummaryrefslogtreecommitdiff
path: root/src/util/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/lock.c')
-rw-r--r--src/util/lock.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/util/lock.c b/src/util/lock.c
index 6c7d07e..95f93af 100644
--- a/src/util/lock.c
+++ b/src/util/lock.c
@@ -1,6 +1,5 @@
#include <cpu.h>
#include <cpu/atomic/swap.h>
-#include <lib/kmem.h>
#include <util/lock.h>
// TODO: Improve locking for system
@@ -25,10 +24,3 @@ void unlock(struct Lock* l)
atm_release((unsigned long*)l);
}
}
-
-struct Lock* create_lock(void)
-{
- struct Lock* l = (struct Lock*)kmalloc(sizeof(struct Lock));
- l->pid = 0;
- return l;
-}