From a340f5d946de81802065b1ec7211e6e076e795bb Mon Sep 17 00:00:00 2001 From: lottaviano Date: Fri, 28 Aug 2009 07:45:01 +0000 Subject: [PATCH] Rename SCHED_CHANGE_PRI to better describe functionality. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2806 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/proc.c | 2 +- bertos/kern/proc_p.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1