Add the editing mode in the main bertos file
[bertos.git] / bertos / kern / proc.c
index 9a1e410b11ffc60cb74df36ff4f07f95a6515a22..25d410df0b2eaeb977acea069ce5e2b33488b955 100644 (file)
@@ -318,9 +318,9 @@ void proc_setPri(struct Process *proc, int pri)
 
                if (proc != CurrentProcess)
                {
-                               //proc_forbid();
-                               //TODO: re-enqueue process
-                               //pric_permit();
+                               proc_forbid();
+                               ATOMIC(sched_reenqueue(proc));
+                               proc_permit();
                }
 }
 #endif // CONFIG_KERN_PRI