Artem Bityutskiy <[email protected]> writes:

> Kevin Hilman wrote:
>>> The problem here is that such an interface is extremely fragile.  Consider
>>> what happens if a program disables HLT, and then gets killed off for some
>>> reason.  How does this reference get balanced again?
>>>
>>> I think a better solution would be a char device driver which has to be
>>> kept open as long as a reference is held.  When userspace closes it (be
>>> that because the program has exited, been killed, etc) you can drop any
>>> pending references.
>>
>> OK, this interface is not intended for users/applications. It is
>> intended only for OMAP PM developers who are developing the PM code
>> and want to prevent idle for various reasons during development.  It
>> is not intended for productions systems.
>>
>> What about leaving /sys/power/sleep_while_idle but only if
>> CONFIG_PM_DEBUG=y?
>
> Sounds like debugfs is the good place for this then.
>

Sound OK to me.

Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to