Changeset 683 for trunk/kernel/kern/scheduler.c
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/scheduler.c
r669 r683 2 2 * scheduler.c - Core scheduler implementation. 3 3 * 4 * Author Alain Greiner (2016,2017,2018)4 * Author Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 63 63 // @ returns pointer on selected thread descriptor 64 64 //////////////////////////////////////////////////////////////////////////////////////////// 65 static thread_t * sched_select( scheduler_t * sched )65 static thread_t * __attribute__((__noinline__))sched_select( scheduler_t * sched ) 66 66 { 67 67 thread_t * thread; … … 83 83 while( done == false ) 84 84 { 85 86 // check kernel threads list87 assert( __FUNCTION__, (count < sched->k_threads_nr), "bad kernel threads list" );88 89 85 // get next entry in kernel list 90 86 current = current->next; … … 117 113 while( done == false ) 118 114 { 119 120 // check user threads list121 assert( __FUNCTION__, (count < sched->u_threads_nr), "bad user threads list" );122 123 115 // get next entry in user list 124 116 current = current->next;
Note: See TracChangeset
for help on using the changeset viewer.