summaryrefslogtreecommitdiffstats
path: root/cpukit
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
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')
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/libi2c/README_libi2c32
-rw-r--r--cpukit/score/src/threadclearstate.c12
3 files changed, 30 insertions, 19 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index ab230a264c..754ee6517b 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * libi2c/README_libi2c: Correct spelling error.
+ * score/src/threadclearstate.c: Improve comment.
+
2008-01-18 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/include/rtems/posix/timer.h, posix/src/cleanuppop.c,
diff --git a/cpukit/libi2c/README_libi2c b/cpukit/libi2c/README_libi2c
index 1dd48faede..f1a8fd017e 100644
--- a/cpukit/libi2c/README_libi2c
+++ b/cpukit/libi2c/README_libi2c
@@ -40,22 +40,22 @@ Structure
This library defines a layered API to i2c and spi devices. The
layering is:
- +---------------------------------------+
- 6| Application |
- +---------------------------------------+
- 5| RTEMS I/O Manager |
- +---------------------------------------+
- 4|** libi2c OS adaption layer **|
- +---------------------------------------+
- 3| high level i2c device driver |
- | (EEPROM, RTC, ...) |
- | (e.g. in c/src/libchip/i2c) |
- +---------------------------------------+
- 2|** libi2c low level abstration layer **|
- +---------------------------------------+
- 1| i2c controller driver |
- | (in BSP) |
- +---------------------------------------+
+ +----------------------------------------+
+ 6| Application |
+ +----------------------------------------+
+ 5| RTEMS I/O Manager |
+ +----------------------------------------+
+ 4|** libi2c OS adaption layer **|
+ +----------------------------------------+
+ 3| high level i2c device driver |
+ | (EEPROM, RTC, ...) |
+ | (e.g. in c/src/libchip/i2c) |
+ +----------------------------------------+
+ 2|** libi2c low level abstraction layer **|
+ +----------------------------------------+
+ 1| i2c controller driver |
+ | (in BSP) |
+ +----------------------------------------+
This document will describe the following interfaces in separate
sections:
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;