Re: [RFD] Automatic suspend
From: Alan Stern
Date: Mon Feb 16 2009 - 21:44:23 EST
On Mon, 16 Feb 2009, Arjan van de Ven wrote:
> > Set the automatic PM parameters (idle timeout, state to go to,
> > etc.). And disabling automatic PM altogether (effectively the same as
> > setting the idle timeout to infinity).
> >
>
> shouldn't idle timeout etc be internal to the driver?
> Yes policy preferences / constraints makes sense to communicate,
> actual settings do not. For one they keep changing fast all the time
> anyway.
Sorry, I don't agree. A single driver may control many different kinds
of device -- it may not even be aware of the distinction! Consider the
SCSI disk driver: It has to handle both traditional rotating media and
solid-state disks. Clearly they should have different runtime PM
parameters. But the driver isn't in a good position to know what those
parameters should be.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/