xref: /OK3568_Linux_fs/debian/overlay/etc/Powermanager/02npu (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3# Log some extra information at the beginning of a suspend/resume cycle.
4
5echo "!!!!!!!!!!!npu $1 $2" > /dev/kmsg
6
7case "$1-$2" in
8       pre-hibernate|pre-suspend)
9	       npu_powerctrl -s
10               ;;
11       post-hibernate|post-suspend)
12	       npu_powerctrl -r
13               ;;
14       *) exit $NA
15               ;;
16esac
17