You should always call
WITH_LOCK(), or stack allocate a
PMIC object nad pass
true to the constructor.
Since the PMIC can be accessed from both the system and user threads, locking it assures that a PMIC opertation will not be interrupted by another thread.