.\" 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 "ENTER_STATE" "" "06 October 2005" "" ""
.SH NAME
enter_state \- Do common work of entering low-power state.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int enter_state (u32 \fIstate\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIstate\fB\fR
pm_state structure for state we're entering.
.SH "DESCRIPTION"
.PP
Make sure we're the only ones trying to enter a sleep state. Fail
if someone has beat us to it, since we don't want anything weird to
happen when we wake up.
Then, do the setup for suspend, enter the state, and cleaup (after
we've woken up).