Rename SCHED_CHANGE_PRI to better describe functionality.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 28 Aug 2009 07:45:01 +0000 (07:45 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 28 Aug 2009 07:45:01 +0000 (07:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2806 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/kern/proc.c
bertos/kern/proc_p.h

index 7ce077b0c14f7974a2e9a76c95770489fd66ac5b..25d410df0b2eaeb977acea069ce5e2b33488b955 100644 (file)
@@ -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();
                }
 }
index 3316594eb1feb2beeee634264378637526f19e64..eea495f611cc5294d2b4deb3c730ad61a01c30c7 100644 (file)
@@ -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);