Changeset 1a5fe4f in mainline for kernel/generic/src/proc
- Timestamp:
- 2018-11-09T18:09:55Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1892d2c
- Parents:
- 3875f106 (diff), ef4218f (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. - git-author:
- Jakub Jermář <jakub@…> (2018-11-09 18:09:55)
- git-committer:
- GitHub <noreply@…> (2018-11-09 18:09:55)
- Location:
- kernel/generic/src/proc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
r3875f106 r1a5fe4f 54 54 #include <atomic.h> 55 55 #include <synch/spinlock.h> 56 #include <synch/workqueue.h>57 #include <synch/rcu.h>58 56 #include <config.h> 59 57 #include <context.h> … … 90 88 { 91 89 before_thread_runs_arch(); 92 rcu_before_thread_runs();93 90 94 91 #ifdef CONFIG_FPU_LAZY … … 131 128 static void after_thread_ran(void) 132 129 { 133 workq_after_thread_ran();134 rcu_after_thread_ran();135 130 after_thread_ran_arch(); 136 131 } … … 430 425 431 426 case Exiting: 432 rcu_thread_exiting();433 427 repeat: 434 428 if (THREAD->detached) { -
kernel/generic/src/proc/task.c
r3875f106 r1a5fe4f 285 285 286 286 /* 287 * Free up dynamically allocated state.288 */289 futex_task_deinit(task);290 291 /*292 287 * Drop our reference to the address space. 293 288 */ -
kernel/generic/src/proc/the.c
r3875f106 r1a5fe4f 60 60 the->as = NULL; 61 61 the->magic = MAGIC; 62 #ifdef RCU_PREEMPT_A63 the->rcu_nesting = 0;64 #endif65 62 } 66 63 -
kernel/generic/src/proc/thread.c
r3875f106 r1a5fe4f 48 48 #include <synch/spinlock.h> 49 49 #include <synch/waitq.h> 50 #include <synch/workqueue.h>51 #include <synch/rcu.h>52 50 #include <cpu.h> 53 51 #include <str.h> … … 69 67 #include <syscall/copy.h> 70 68 #include <errno.h> 69 #include <debug.h> 71 70 72 71 /** Thread states */ … … 272 271 { 273 272 assert(irq_spinlock_locked(&thread->lock)); 274 workq_before_thread_is_ready(thread);275 273 } 276 274 … … 399 397 thread->task = task; 400 398 401 thread->workq = NULL;402 403 399 thread->fpu_context_exists = false; 404 400 thread->fpu_context_engaged = false; … … 414 410 /* Might depend on previous initialization */ 415 411 thread_create_arch(thread); 416 417 rcu_thread_init(thread);418 412 419 413 if ((flags & THREAD_FLAG_NOATTACH) != THREAD_FLAG_NOATTACH)
Note:
See TracChangeset
for help on using the changeset viewer.
