Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com>
  • Loading branch information
tsoutsman committed Sep 16, 2023
1 parent a9d9fac commit dfd9fe2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/task/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ where
}

/// Adds the given task to the least busy run queue.
///
/// However, if the task is pinned to a a CPU, this function will respect that,
/// and only add the task to that CPUs runqueue.
pub fn add_task(task: TaskRef) {
if let Some(cpu) = task.pinned_cpu() {
add_task_to(cpu, task)
Expand Down

0 comments on commit dfd9fe2

Please sign in to comment.