Skip to content

Suspend block api (version 7)

Arve Hjønnevåg linux-input linux-omap linux-pm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 91 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8PM: Add suspend block api.Documentation/power/opportunistic-suspend.txt include/linux/suspend.h include/linux/suspend_blocker.h +6 more+637 -821 replies
2/8PM: suspend_block: Add driver to access suspend blockers from user-spaceDocumentation/ioctl/ioctl-number.txt Documentation/power/opportunistic-suspend.txt include/linux/suspend_ioctls.h +3 more+184 -10 replies
3/8PM: suspend_block: Abort task freezing if a suspend_blocker is active.kernel/power/process.c+9 -20 replies
4/8PM: suspend_block: Add debugfs filekernel/power/opportunistic_suspend.c+42 -10 replies
5/8PM: suspend_block: Add suspend_blocker statsinclude/linux/suspend_blocker.h kernel/power/Kconfig kernel/power/opportunistic_suspend.c +2 more+239 -50 replies
6/8PM: Add suspend blocking work.include/linux/suspend_blocker.h kernel/power/opportunistic_suspend.c+176 -00 replies
6/8PM: Add suspend blocking work.include/linux/suspend_blocker.h kernel/power/opportunistic_suspend.c+176 -00 replies
7/8Input: Block suspend while event queue is not empty.drivers/input/evdev.c include/linux/input.h+25 -00 replies
8/8power_supply: Block suspend while power supply change notifications are pendingdrivers/power/power_supply_core.c include/linux/power_supply.h+8 -40 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchPavel MachekTejun Heo
1/8
2/8
3/8A-b
4/8
5/8
6/8A-b A-b R-b R-b
6/8A-b A-b R-b R-b
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] Suspend block api (version 7)

This patch series adds a suspend-block api that provides the same functionality as the android wakelock api. This version has some changes from, or requested by, Rafael. The most notable changes are:
- DEFINE_SUSPEND_BLOCKER and suspend_blocker_register have been added for statically allocated suspend blockers.
- suspend_blocker_destroy is now called suspend_blocker_unregister
- The user space mandatory _INIT ioctl has been replaced with an optional _SET_NAME ioctl.

I kept the ack and reviewed by tags on two of the patches even though there were a few cosmetic changes.

--
Arve Hjønnevåg <[email protected]>