From 9d83a319b061bc9fb768e41a5ea4b754dd799171 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 19 Oct 2021 10:09:33 +0200 Subject: [PATCH] Remove unused cpu members and simplify comments --- emu.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/emu.h b/emu.h index 24821d5..7429919 100644 --- a/emu.h +++ b/emu.h @@ -306,20 +306,15 @@ struct ovni_cpu { /* CPU channels */ struct ovni_chan chan[CHAN_MAX]; - size_t last_nthreads; - - /* 1 if the cpu has updated is threads, 0 if not */ - int updated; - - /* The threads with affinity set to this CPU */ + /* The threads assigned to this CPU */ size_t nthreads; struct ovni_ethread *thread[OVNI_MAX_THR]; - /* From the assigned threads, how many running */ + /* Running threads */ size_t nrunning_threads; struct ovni_ethread *th_running; - /* Number of assigned threads active */ + /* Active threads (not paused or dead) */ size_t nactive_threads; struct ovni_ethread *th_active;