.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "FINISH_TASK_SWITCH" "" "06 October 2005" "" "" .SH NAME finish_task_switch \- clean up after a task-switch .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp void finish_task_switch (task_t * \fIprev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIprev\fB\fR the thread we just switched away from. .SH "DESCRIPTION" .PP We enter this with the runqueue still locked, and \fBfinish_arch_switch\fR will unlock it along with doing any other architecture-specific cleanup actions. .PP Note that we may have delayed dropping an mm in \fBcontext_switch\fR\&. If so, we finish that here outside of the runqueue lock. (Doing it with the lock held can cause deadlocks; see \fBschedule\fR for details.)