Skip to content

Commit 7f3cea0

Browse files
committed
pm: decouple module from inhibit configuration
Always enable PM module regardless of inhibit state. The module handles suspend/resume events (Pause, signals, system sleep) which should work independently of the inhibit module. Signed-off-by: LI Qingwu <[email protected]>
1 parent ef43d5a commit 7f3cea0

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/modules/pm.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ static bool check(void) {
4242
}
4343

4444
static bool evaluate() {
45-
return !conf.inh_conf.disabled;
45+
/*
46+
* PM module handles suspend/resume events (SUSPEND_REQ) and power
47+
* management inhibition (PM_REQ). Suspend/resume must work regardless
48+
* of inhibit configuration, so always enable this module.
49+
*/
50+
return true;
4651
}
4752

4853
static void receive(const msg_t *const msg, UNUSED const void* userdata) {

0 commit comments

Comments
 (0)