/* The state holds the state to transition to, which may in fact be an acceptance of a BIOS requested state change.  */
static int set_power_state(u_short what, u_short state)
/* The state holds the state to transition to, which may in fact be an acceptance of a BIOS requested state change.  */
static int set_power_state(u_short what, u_short state)
{
	u32 eax;
	int err;
	if (apm_bios_call_simple(APM_FUNC_SET_STATE, what, state, &eax, &err))
		return err;
	return APM_SUCCESS;
}