X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=blobdiff_plain;f=bertos%2Fkern%2Fcoop.c;h=2173126017acf0ffb2187ae5b0a3fb6f085c1ef2;hp=be3d6dfdb0756915bf339ab8e3bc8ab0476a0673;hb=ae8a609173e4490fd03875f96e388038053b9288;hpb=171251d9de4ef383f9f0feb622da3863076b1fc6 diff --git a/bertos/kern/coop.c b/bertos/kern/coop.c index be3d6dfd..21731260 100644 --- a/bertos/kern/coop.c +++ b/bertos/kern/coop.c @@ -63,7 +63,7 @@ EXTERN_C void asm_switch_context(cpu_stack_t **new_sp, cpu_stack_t **save_sp); * System scheduler: pass CPU control to the next process in * the ready queue. */ -static void proc_schedule(void) +static void coop_schedule(void) { cpu_flags_t flags; @@ -98,12 +98,12 @@ static void proc_schedule(void) IRQ_RESTORE(flags); } -void proc_switch(void) +void coop_switch(void) { /* Remember old process to save its context later */ Process * const old_process = current_process; - proc_schedule(); + coop_schedule(); /* * Optimization: don't switch contexts when the active @@ -135,7 +135,7 @@ void proc_switch(void) /** * Co-operative context switch */ -void proc_yield(void) +void coop_yield(void) { ATOMIC(SCHED_ENQUEUE(current_process)); proc_switch();