BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / 5be6a64670a09857d2128737723e0b5d4021271e / task / time.c

// Related

Nucleus

Barry Global object lists 5be6a64 (3 years, 3 months ago)
diff --git a/task/time.c b/task/time.c
index 39675e4..345b491 100644
--- a/task/time.c
+++ b/task/time.c
@@ -17,10 +17,9 @@ timer_handler(struct InterruptFrame *frame)
 {
 	monotonic++;
 
-	/* Account timeslices */
-	slice[CPUID]++;
 	if (!current)
 		return;
+	slice[CPUID]++;
 
 	/* Call scheduler */
 	if (slice[CPUID] < current->priority)