.\" 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 "__WAKE_UP_SYNC" "" "06 October 2005" "" ""
.SH NAME
__wake_up_sync \- sync- wake up threads blocked on a waitqueue.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void __wake_up_sync (wait_queue_head_t * \fIq\fB, unsigned int \fImode\fB, int \fInr_exclusive\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIq\fB\fR
the waitqueue
.TP
\fB\fImode\fB\fR
which threads
.TP
\fB\fInr_exclusive\fB\fR
how many wake-one or wake-many threads to wake up
.SH "DESCRIPTION"
.PP
The sync wakeup differs that the waker knows that it will schedule
away soon, so while the target thread will be woken up, it will not
be migrated to another CPU - ie. the two threads are 'synchronized'
with each other. This can prevent needless bouncing between CPUs.
.PP
On UP it can prevent extra preemption.