From dd7c04a39bd88da8e381bb88078c41b049a6665c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 21 Oct 2022 21:34:18 +0300 Subject: beautification --- common/tcb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index 42e634d..675aa1f 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -307,9 +307,7 @@ void use_tcb(struct tcb *t) { cpu_assign(t); - id_t cpu = cpu_id(); - t->cpu_id = cpu; - cpu_tcb[cpu] = t; + cpu_tcb[t->cpu_id] = t; use_vmem(t->proc.vmem); } -- cgit v1.3