aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/irq.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-16 15:53:48 -0700
committerChristian Cunningham <cc@localhost>2022-03-16 15:53:48 -0700
commit4d9e61b01339866bb00cefb59e13826a05a6be0e (patch)
treef529aafd57f19a6a7d40fbdd7f8613f8b2696cfa /src/cpu/irq.c
parent18b205cc3498e81136107b383618f92df5ef1380 (diff)
Add method to not allow duplicates
Diffstat (limited to 'src/cpu/irq.c')
-rw-r--r--src/cpu/irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/irq.c b/src/cpu/irq.c
index 80ca7dd..694742a 100644
--- a/src/cpu/irq.c
+++ b/src/cpu/irq.c
@@ -61,7 +61,7 @@ void c_irq_handler(void)
static char timer_lock = 0;
if (!timer_lock) {
timer_lock = 1;
- add_thread(test_entry, 0, 2);
+ add_thread_without_duplicate(test_entry, 0, 2);
timer_lock = 0;
}
*nexttime = *timer_chi + 8000000;