Changeset 117ad5a2 in mainline
- Timestamp:
- 2023-04-19T09:31:02Z (18 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ec8ef12
- Parents:
- f3dbe27
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
rf3dbe27 r117ad5a2 178 178 * 179 179 */ 180 static thread_t *find_best_thread( void)180 static thread_t *find_best_thread(int *rq_index) 181 181 { 182 182 assert(CPU != NULL); … … 245 245 irq_spinlock_unlock(&thread->lock, false); 246 246 247 *rq_index = i; 247 248 return thread; 248 249 } … … 462 463 } 463 464 464 THREAD = find_best_thread(); 465 466 irq_spinlock_lock(&THREAD->lock, false); 467 int priority = THREAD->priority; 468 irq_spinlock_unlock(&THREAD->lock, false); 469 470 relink_rq(priority); 465 int rq_index; 466 THREAD = find_best_thread(&rq_index); 467 468 relink_rq(rq_index); 471 469 472 470 switch_task(THREAD->task);
Note:
See TracChangeset
for help on using the changeset viewer.