Changeset 8a64e81e in mainline for kernel/generic/src/proc
- Timestamp:
- 2012-07-06T13:31:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d56712
- Parents:
- 518dd43
- Location:
- kernel/generic/src/proc
- Files:
-
- 2 edited
-
scheduler.c (modified) (2 diffs)
-
thread.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r518dd43 r8a64e81e 52 52 #include <atomic.h> 53 53 #include <synch/spinlock.h> 54 #include <synch/workqueue.h> 54 55 #include <config.h> 55 56 #include <context.h> … … 126 127 static void after_thread_ran(void) 127 128 { 129 workq_after_thread_ran(); 128 130 after_thread_ran_arch(); 129 131 } -
kernel/generic/src/proc/thread.c
r518dd43 r8a64e81e 46 46 #include <synch/spinlock.h> 47 47 #include <synch/waitq.h> 48 #include <synch/workqueue.h> 48 49 #include <cpu.h> 49 50 #include <str.h> … … 260 261 } 261 262 263 /** Invoked right before thread_ready() readies the thread. thread is locked. */ 264 static void before_thread_is_ready(thread_t *thread) 265 { 266 ASSERT(irq_spinlock_locked(&thread->lock)); 267 workq_before_thread_is_ready(thread); 268 } 269 262 270 /** Make thread ready 263 271 * … … 273 281 ASSERT(thread->state != Ready); 274 282 283 before_thread_is_ready(thread); 284 275 285 int i = (thread->priority < RQ_COUNT - 1) ? 276 286 ++thread->priority : thread->priority; … … 378 388 379 389 thread->task = task; 390 391 thread->workq = NULL; 380 392 381 393 thread->fpu_context_exists = false;
Note:
See TracChangeset
for help on using the changeset viewer.
