kernel: use list.h for DPC queues

This commit is contained in:
wnstngs
2026-10-07 10:23:18 +03:00
parent 90cbe1d6aa
commit 3894be1a15
3 changed files with 11 additions and 30 deletions
+2 -2
View File
@@ -3,13 +3,13 @@
#include <arch/context.h>
#include <stdbool.h>
#include <list.h>
typedef void * dpcarg_t;
typedef void (*dpcfn_t)(context_t *, dpcarg_t);
typedef struct _dpc_t {
struct _dpc_t *next;
struct _dpc_t *prev;
list_node_t list_node;
bool enqueued;
dpcfn_t fn;
dpcarg_t arg;
+1 -1
View File
@@ -46,7 +46,7 @@ typedef struct cpu_t {
timer_t *timer;
isr_t *dpcisr;
dpc_t *dpcqueue;
list_t dpcqueue;
thread_t *idlethread;
timerentry_t schedtimerentry;