implement recent_cpu

This commit is contained in:
EDiasAlberto
2024-10-16 18:27:21 +01:00
committed by Gleb Koval
parent 630fbaa3ab
commit d5f913de2b
3 changed files with 37 additions and 5 deletions

View File

@@ -96,7 +96,7 @@ struct thread
/* MLFQS items */
int nice; /* Nice value for this thread */
fp32_t recent_cpu; /* Amount of time this process received */
fp32_t recent_cpu; /* Amount of time this process received */
#ifdef USERPROG
/* Owned by userprog/process.c. */