Changeset ec8ef12 in mainline for kernel/arch/amd64/src/cpu/cpu.c

Timestamp:
2023-04-19T09:31:02Z (21 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0757e1f
Parents:
117ad5a2
Message:

Split find_best_thread() into two functions

try_find_thread() attempts to get a thread from runqueues and returns
NULL when there's none available. find_best_thread() functions as
before and goes to sleep between attempts to find a thread to run.

The purpose of this split is that we can use the non-sleeping version
in the context of a previously running thread to avoid an additional
context switch in case new thread is immediately available.

(No files)

Note: See TracChangeset for help on using the changeset viewer.