projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make hw files more generic.
[bertos.git]
/
bertos
/
kern
/
proc_p.h
diff --git
a/bertos/kern/proc_p.h
b/bertos/kern/proc_p.h
index 54ea3710acb4f5ca4c72831451b82dc8e9cf01bd..eea495f611cc5294d2b4deb3c730ad61a01c30c7 100644
(file)
--- a/
bertos/kern/proc_p.h
+++ b/
bertos/kern/proc_p.h
@@
-133,7
+133,7
@@
extern REGISTER List ProcReadyList;
SCHED_ENQUEUE_INTERNAL(proc); \
} while (0)
SCHED_ENQUEUE_INTERNAL(proc); \
} while (0)
-#if
def
CONFIG_KERN_PRI
+#if CONFIG_KERN_PRI
/**
* Changes the priority of an already enqueued process.
*
/**
* Changes the priority of an already enqueued process.
*
@@
-144,7
+144,7
@@
extern REGISTER List ProcReadyList;
*
* \note Performance could be improved with a different implementation of priority list.
*/
*
* \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);
{
IRQ_ASSERT_DISABLED();
LIST_ASSERT_VALID(&ProcReadyList);
@@
-152,9
+152,9
@@
INLINE void SCHED_CHANGE_PRI(struct Process *proc)
PriNode *pos = NULL;
FOREACH_NODE(n, &ProcReadyList)
{
PriNode *pos = NULL;
FOREACH_NODE(n, &ProcReadyList)
{
- if (n == &proc->link)
+ if (n == &proc->link
.link
)
{
{
- pos = n;
+ pos =
(PriNode *)
n;
break;
}
}
break;
}
}