Changeset 5861b60 in mainline
- Timestamp:
- 2024-01-15T15:15:14Z (12 months ago)
- Branches:
- master
- Children:
- a064d4f
- Parents:
- c7ceacf
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-03-12 15:06:58)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2024-01-15 15:15:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/scheduler.c
rc7ceacf r5861b60 449 449 THREAD->kcycles += get_cycle() - THREAD->last_cycle; 450 450 451 after_thread_ran_arch(); 452 453 if (new_state == Sleeping) { 454 /* Prefer the thread after it's woken up. */ 455 THREAD->priority = -1; 456 } 457 451 458 if (!context_save(&THREAD->saved_context)) { 452 459 /* … … 506 513 507 514 if (THREAD) { 508 after_thread_ran_arch();509 510 515 state_t state = THREAD->state; 511 512 if (state == Sleeping) {513 /* Prefer the thread after it's woken up. */514 THREAD->priority = -1;515 }516 517 516 irq_spinlock_unlock(&THREAD->lock, false); 518 517
Note:
See TracChangeset
for help on using the changeset viewer.