1#!/bin/bash -e 2### BEGIN INIT INFO 3# Provides: S10atomic_commit 4# Required-Start: 5# Required-Stop: 6# Default-Start: 7# Default-Stop: 8# Short-Description: 9# Description: Setup enable async for display 10### END INIT INFO 11# 12# For new rockchip BSP kernel only. 13# Enable ASYNC_COMMIT by default to keep the same behavior as the old 14# BSP 4.4 kernel. 15# 16 17which modetest || exit 0 18 19case "$1" in 20 start) 21 for p in $(modetest|grep "^Planes:" -A 9999|grep -o "^[0-9]*"); 22 do 23 modetest -M rockchip -aw $p:ASYNC_COMMIT:1 &>/dev/null 24 done 25 ;; 26 stop) 27 ;; 28 restart|reload) 29 ;; 30 *) 31 echo "Usage: $0 {start|stop|restart}" 32 exit 1 33esac 34 35exit $? 36