Skip to content

Commit

Permalink
[wakelock] Add module for virtual wakelocks. Contributes to JB#32462
Browse files Browse the repository at this point in the history
MCE has multitude of reasons for blocking late suspend. Using real
wakelocks for each reason pollutes the kernel bookkeeping data and
using dynamically named wakelocks would make things even worse.

Add mce-wakelock module that multiplexes virtual wakelocks internal
to mce into just one real sysfs based wakelock.
  • Loading branch information
spiiroin committed Oct 9, 2015
1 parent fcf8376 commit 1b5a256
Show file tree
Hide file tree
Showing 5 changed files with 543 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .depend
Expand Up @@ -330,6 +330,16 @@ mce-sensorfw.pic.o:\
mce-sensorfw.h\
mce.h\

mce-wakelock.o:\
mce-wakelock.c\
mce-log.h\
mce-wakelock.h\

mce-wakelock.pic.o:\
mce-wakelock.c\
mce-log.h\
mce-wakelock.h\

mce.o:\
mce.c\
builtin-gconf.h\
Expand All @@ -347,6 +357,7 @@ mce.o:\
mce-log.h\
mce-modules.h\
mce-sensorfw.h\
mce-wakelock.h\
mce.h\
modetransition.h\
powerkey.h\
Expand All @@ -369,6 +380,7 @@ mce.pic.o:\
mce-log.h\
mce-modules.h\
mce-sensorfw.h\
mce-wakelock.h\
mce.h\
modetransition.h\
powerkey.h\
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Expand Up @@ -280,6 +280,7 @@ MCE_CORE += mce-dbus.c
MCE_CORE += mce-dsme.c
MCE_CORE += mce-gconf.c
MCE_CORE += mce-hbtimer.c
MCE_CORE += mce-wakelock.c
MCE_CORE += event-input.c
MCE_CORE += event-switches.c
MCE_CORE += mce-hal.c
Expand Down Expand Up @@ -541,6 +542,8 @@ NORMALIZE_USES_SPC =\
mce-modules.h\
mce-sensorfw.c\
mce-sensorfw.h\
mce-wakelock.c\
mce-wakelock.h\
modetransition.h\
modules/audiorouting.c\
modules/battery-upower.c\
Expand Down

0 comments on commit 1b5a256

Please sign in to comment.