Changeset 58775d30 in mainline for kernel/generic/src/proc/scheduler.c
- Timestamp:
- 2015-03-16T16:07:21Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2003739
- Parents:
- 6069061 (diff), 795e2bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r6069061 r58775d30 52 52 #include <atomic.h> 53 53 #include <synch/spinlock.h> 54 #include <synch/workqueue.h> 55 #include <synch/rcu.h> 54 56 #include <config.h> 55 57 #include <context.h> … … 64 66 #include <debug.h> 65 67 #include <stacktrace.h> 68 #include <cpu.h> 66 69 67 70 static void scheduler_separated_stack(void); … … 87 90 { 88 91 before_thread_runs_arch(); 92 rcu_before_thread_runs(); 89 93 90 94 #ifdef CONFIG_FPU_LAZY … … 127 131 static void after_thread_ran(void) 128 132 { 133 workq_after_thread_ran(); 134 rcu_after_thread_ran(); 129 135 after_thread_ran_arch(); 130 136 } … … 219 225 goto loop; 220 226 } 227 228 ASSERT(!CPU->idle); 221 229 222 230 unsigned int i; … … 398 406 ASSERT((!THREAD) || (irq_spinlock_locked(&THREAD->lock))); 399 407 ASSERT(CPU != NULL); 408 ASSERT(interrupts_disabled()); 400 409 401 410 /* … … 421 430 422 431 case Exiting: 432 rcu_thread_exiting(); 423 433 repeat: 424 434 if (THREAD->detached) {
Note:
See TracChangeset
for help on using the changeset viewer.