xref: /OK3568_Linux_fs/debian/overlay/etc/Powermanager/01npu (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2# Log some extra information at the beginning of a suspend/resume cycle.
3# TODO: Make this hook only run when PM_DEBUG is true?
4
5. "${PM_FUNCTIONS}"
6
7case "$1" in
8       hibernate|suspend)
9	       npu_powerctrl -s
10               ;;
11       thaw|resume)
12	       npu_powerctrl -r
13               ;;
14       *) exit $NA
15               ;;
16esac
17