FINISH_TASK_SWITCH

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

finish_task_switch - clean up after a task-switch  

SYNOPSIS

"SYNOPSIS"

void finish_task_switch (runqueue_t * rq, task_t * prev);  

ARGUMENTS

rq
-- undescribed --
prev
the thread we just switched away from.
 

DESCRIPTION

finish_task_switch must be called after the context switch, paired with a prepare_task_switch call before the context switch. finish_task_switch will reconcile locking set up by prepare_task_switch, and do any other architecture-specific cleanup actions.

Note that we may have delayed dropping an mm in context_switch. If so, we finish that here outside of the runqueue lock. (Doing it with the lock held can cause deadlocks; see schedule for details.)


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:10 GMT, October 09, 2005