From: lottaviano Date: Fri, 28 Aug 2009 07:45:01 +0000 (+0000) Subject: Rename SCHED_CHANGE_PRI to better describe functionality. X-Git-Tag: 2.2.0~162 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=a340f5d946de81802065b1ec7211e6e076e795bb;p=bertos.git Rename SCHED_CHANGE_PRI to better describe functionality. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2806 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 7ce077b0..25d410df 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -319,7 +319,7 @@ void proc_setPri(struct Process *proc, int pri) if (proc != CurrentProcess) { proc_forbid(); - ATOMIC(SCHED_CHANGE_PRI(proc)); + ATOMIC(sched_reenqueue(proc)); proc_permit(); } } diff --git a/bertos/kern/proc_p.h b/bertos/kern/proc_p.h index 3316594e..eea495f6 100644 --- a/bertos/kern/proc_p.h +++ b/bertos/kern/proc_p.h @@ -144,7 +144,7 @@ extern REGISTER List ProcReadyList; * * \note Performance could be improved with a different implementation of priority list. */ -INLINE void SCHED_CHANGE_PRI(struct Process *proc) +INLINE void sched_reenqueue(struct Process *proc) { IRQ_ASSERT_DISABLED(); LIST_ASSERT_VALID(&ProcReadyList);