android upstreaming: Wake Locks

Registered by Deepak Saxena on 2011-11-09

Upstream implementation of wake locks (aka suspend blockers) functionality

Blueprint information

Status:
Complete
Approver:
Deepak Saxena
Priority:
Undefined
Drafter:
Deepak Saxena
Direction:
Needs approval
Assignee:
John Stultz
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon backlog
Started by
Deepak Saxena on 2012-05-24
Completed by
John Stultz on 2012-09-12

Related branches

Sprints

Whiteboard

Meta:
Headline: Upstream Android wake lock functionality
Acceptance: Android applications run using upstreamed wakelock functionality and use existing application level wake lock APIs to bock system suspend.

Wakelocks got merged upstream!
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=b86ff9820fd5df69295273b9aa68e58786ffc23f

Roadmap id: KWG2011-ANDROID-WAKELOCK-UPSTREAMING

(?)

Work Items

Work items for 12.01:
Sent Android wakelock patches as-is to Rafael: DONE
Continue discussions around Kernel Summit comments to determine if wakelock patches will go upstream as-is (no, likely to be reworked by Rafael): DONE

Work items for 12.02:
[jstultz] Briefly reviewed Rafael's wakelock patchset, did some initial testing and reported one locking issue (Feb 21): DONE
[jstultz] Working to get a ARM test platform working w/ suspend/resume functioning so I can test Rafael's work w/ Android (Feb 28): DONE

Work items for 12.03:
[jstultz] Compare and contrast Rafael's wakelock patches with Android's wakelock patches by testing and looking for differences in behavior: DONE

Work items for 12.04:
[jstultz] Reviewed Arve's recent rework of the wakelock code(April 11): DONE
[jstultz] Generated a patch to remove the userwakelock api's use of the wakelock shim, instead having it use the wakeup_source api directly(April 11): DONE
[jstultz] Pinged Arve & Rafael about upstream plans, and sent my small patch along for comment(April 11): DONE
[jstultz] Reviewed Rafael's next iteration of the autosleep/userland wakelock api. Found a bug & sent a fix in (April 23): DONE

Work items for 12.06:
[jstultz] Test upstreamed API along with Android tree and validate everything works properly (June 4): DONE

Work items for 12.11:
[jstultz] Validated AOSP 4.2 uses a linux-3.4 based common.git tree, which includes Rafael's patch set that was usptreamed in 3.5. API is identical, so this is complete. (Nov 27): DONE

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.