: Kconfig options for wakelocks limit and gc (was: Re: [RFC][PATCH 8/8] PM / Sleep: Add user space ...)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PM / Sleep: Make the limit of user space wakeup sources configurablekernel/ kernel/ | +32 | 0 replies | |
| 2/2 | PM / Sleep: User space wakeup sources garbage collector Kconfig optionkernel/ kernel/ | +67 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2]: Kconfig options for wakelocks limit and gc (was: Re: [RFC][PATCH 8/8] PM / Sleep: Add user space ...)
Quoted 35 lines · Rafael J. Wysocki
Quoted 34 lines · Arve Hjønnevåg
2012/4/27 Rafael J. Wysocki <[email protected]>:
Quoted 33 lines · Arve Hjønnevåg
Quoted 31 lines
2012/4/26 Rafael J. Wysocki <[email protected]>:
...Quoted 12 lines
---
From: Rafael J. Wysocki <[email protected]>
Subject: PM / Sleep: Add user space interface for manipulating wakeup sources, v3Android allows user space to manipulate wakelocks using two sysfs file located in
/sys/power/,wake_lockandwake_unlock. Writing a wakelock name and optionally a timeout to thewake_lockfile causes the wakelock whose name was written to be acquired (it is created before is necessary), optionally with the given timeout. Writing the name of a wakelock towake_unlockcauses that wakelock to be released.Quoted 11 lines
Implement an analogous interface for user space using wakeup sources. Add the
/sys/power/wake_lockand/sys/power/wake_unlockfiles allowing user space to create, activate and deactivate wakeup sources, such that writing a name and optionally a timeout towake_lockcauses the wakeup source of that name to be activated, optionally with the given timeout. If that wakeup source doesn't exist, it will be created and then activated. Writing a name towake_unlockcauses the wakeup source of that name, if there is one, to be deactivated. Wakeup sources created with the help ofwake_lockthat haven't been used for more than 5 minutes are garbage collected and destroyed. Moreover, there can be onlyWL_NUMBER_LIMITI think it would be better if the garbage collection and limit was configurable and optional. I would probably turn both features off since I do not want to chase down bugs because a wakelock was ignored, and I think the garbage collection will erase stats that we care about.
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
OK, but would you mind if I added the configurability as a separate incremental patch?
That is fine with me.
Cool, thanks!
The following two patches add the configuration options for the limit and garbage collector. Please let me know if they are OK with you.
Thanks,
Rafael