Changeset aae365bc in mainline for kernel/generic/src
- Timestamp:
- 2018-11-07T21:11:52Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d19b3fc
- Parents:
- 947ab77e
- Location:
- kernel/generic/src
- Files:
-
- 3 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r947ab77e raae365bc 70 70 #include <sysinfo/sysinfo.h> 71 71 #include <symtab.h> 72 #include <synch/workqueue.h>73 #include <synch/rcu.h>74 72 #include <errno.h> 75 73 … … 536 534 }; 537 535 538 /* Data and methods for the 'workq' command */539 static int cmd_workq(cmd_arg_t *argv);540 static cmd_info_t workq_info = {541 .name = "workq",542 .description = "Show global workq information.",543 .func = cmd_workq,544 .argc = 0545 };546 547 /* Data and methods for the 'workq' command */548 static int cmd_rcu(cmd_arg_t *argv);549 static cmd_info_t rcu_info = {550 .name = "rcu",551 .description = "Show RCU run-time statistics.",552 .func = cmd_rcu,553 .argc = 0554 };555 556 536 /* Data and methods for 'ipc' command */ 557 537 static int cmd_ipc(cmd_arg_t *argv); … … 618 598 &physmem_info, 619 599 &reboot_info, 620 &rcu_info,621 600 &sched_info, 622 601 &set4_info, … … 628 607 &uptime_info, 629 608 &version_info, 630 &workq_info,631 609 &zones_info, 632 610 &zone_info, … … 1302 1280 } 1303 1281 1304 /** Prints information about the global work queue.1305 *1306 * @param argv Ignores1307 *1308 * @return Always 11309 */1310 int cmd_workq(cmd_arg_t *argv)1311 {1312 workq_global_print_info();1313 return 1;1314 }1315 1316 /** Prints RCU statistics.1317 *1318 * @param argv Ignores1319 *1320 * @return Always 11321 */1322 int cmd_rcu(cmd_arg_t *argv)1323 {1324 rcu_print_stat();1325 return 1;1326 }1327 1328 1282 /** Command for listing memory zones 1329 1283 * -
kernel/generic/src/cpu/cpu.c
r947ab77e raae365bc 50 50 #include <sysinfo/sysinfo.h> 51 51 #include <arch/cycle.h> 52 #include <synch/rcu.h>53 52 54 53 cpu_t *cpus; … … 108 107 cpu_identify(); 109 108 cpu_arch_init(); 110 rcu_cpu_init();111 109 } 112 110 -
kernel/generic/src/main/kinit.c
r947ab77e raae365bc 79 79 #include <synch/waitq.h> 80 80 #include <synch/spinlock.h> 81 #include <synch/workqueue.h>82 #include <synch/rcu.h>83 81 84 82 #define ALIVE_CHARS 4 … … 109 107 110 108 interrupts_disable(); 111 112 /* Start processing RCU callbacks. RCU is fully functional afterwards. */113 rcu_kinit_init();114 115 /*116 * Start processing work queue items. Some may have been queued during boot.117 */118 workq_global_worker_init();119 109 120 110 #ifdef CONFIG_SMP -
kernel/generic/src/main/main.c
r947ab77e raae365bc 78 78 #include <synch/waitq.h> 79 79 #include <synch/futex.h> 80 #include <synch/workqueue.h>81 80 #include <smp/smp_call.h> 82 81 #include <arch/arch.h> … … 275 274 276 275 smp_call_init(); 277 workq_global_init();278 276 clock_counter_init(); 279 277 timeout_init(); -
kernel/generic/src/proc/scheduler.c
r947ab77e raae365bc 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/the.c
r947ab77e raae365bc 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
r947ab77e raae365bc 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.