Block suspend for 60 seconds if dsme makes abnormal exit

If dsme makes abnormal exit, it will acquire a wakelock that will
automatically cancel after 60 seconds. This makes sure the device is
not suspended while systemd is either restarting the dsme service or
rebooting the device.

Blocking suspend also makes sure hw watchdog does not get fed by random
suspend-resume cycles and there will be watchdog reboot if systemd does
not manage to restart dsme / shutdown the device in time.

Additionally watchdogs are fed one more time if dsme is about to exit
due to terminal signal. This makes sure a full watchdog timeout period
is available for core dumping and dsme process restarting.

[dsme] Block suspend for 60 seconds if dsme makes abnormal exit. Fixes JB#16301

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
Do not use sentinel for statically allocated array
Merge pull request #68 from spiiroin/block_suspend_while_dsme_restarts

Block suspend for 60 seconds if dsme makes abnormal exit
Bump dsme version to 0.66.4
[systemd] Increase StartLimitBurst from 2 to 3

It might be that 2 is too small because also manual restarts
are counted to failed service. Let's increase value by one so
that we don't get any problems during system update.

Signed-off-by: Matti Kosola <matti.kosola@jollamobile.com>
Merge pull request #69 from mkosola/master

Increase StartLimitBurst from 2 to 3
Bump dsme version to 0.66.5

Signed-off-by: Matti Kosola <matti.kosola@jollamobile.com>
[thermalmanager] Require 3 readings for same status before changing thermal status JB#18632

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Fix typos
Merge pull request #70 from nemomobile/plu

Require 3 readings for same status before changing thermal status
Version 0.66.6

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
[thermalsensor] Log unsual battery temperature readings JB#18785

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge pull request #71 from nemomobile/plu

[thermalsensor] Log unsual battery temperature readings JB#18785
v 0.66.7

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
[state]  Dont allow ACTDEAD to USER change on low battery. JB#14176

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Changed DSME_MINIMUM_BATTERY_TO_USER to 3%

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
Merge pull request #72 from nemomobile/plu

Dont allow ACTDEAD to USER change on low battery
version 0.66.8
[feedback] Added vibra feedback when low battery can't boot to USER JB#20509

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
[batterytracker] Do not shutdown while in charger level drops %2 to 1% JB#20836

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>