summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadclearstate.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-22 15:20:34 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-22 15:20:34 +0000
commit797c232daded0ae9557d6d9ca1b3f2815345d471 (patch)
treec9c89949df6f4a931011c05f1917c8686576cc3c /cpukit/score/src/threadclearstate.c
parent2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-797c232daded0ae9557d6d9ca1b3f2815345d471.tar.bz2
2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* libi2c/README_libi2c: Correct spelling error. * score/src/threadclearstate.c: Improve comment.
Diffstat (limited to 'cpukit/score/src/threadclearstate.c')
-rw-r--r--cpukit/score/src/threadclearstate.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/cpukit/score/src/threadclearstate.c b/cpukit/score/src/threadclearstate.c
index 8a175fd8cd..f8525b2716 100644
--- a/cpukit/score/src/threadclearstate.c
+++ b/cpukit/score/src/threadclearstate.c
@@ -75,9 +75,15 @@ void _Thread_Clear_state(
/*
* If the thread that was unblocked is more important than the heir,
- * then we have a new heir. In addition, if the current thread
- * is preemptible or we are waking up one of the "pseudo-ISR" system
- * threads, then we need to do a context switch.
+ * then we have a new heir. This may or may not result in a
+ * context switch.
+ *
+ * Normal case:
+ * If the current thread is preemptible, then we need to do
+ * a context switch.
+ * Pseudo-ISR case:
+ * Even if the thread isn't preemptible, if the new heir is
+ * a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;