#!/bin/sh # # Copyright 2015, Daniel Axtens, IBM Corporation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # do we have ./getscom, ./putscom? if [ -x ./getscom ] && [ -x ./putscom ]; then GETSCOM=./getscom PUTSCOM=./putscom elif which getscom > /dev/null; then GETSCOM=$(which getscom) PUTSCOM=$(which putscom) else cat < /dev/null; then echo "Error injecting. Aborting!" exit 1 fi # now we want to wait for all the HMIs to be processed # we expect one per thread on the core i=0; new_hmis=$(COUNT_HMIS) while [ $new_hmis -lt $((old_hmis + expected_hmis)) ] && [ $i -lt 12 ]; do echo "Seen $((new_hmis - old_hmis)) HMI(s) out of $expected_hmis expected, sleeping" sleep 5; i=$((i + 1)) new_hmis=$(COUNT_HMIS) done if [ $i = 12 ]; then echo "Haven't seen expected $expected_hmis recoveries after 1 min. Aborting." exit 1 fi echo "Processed $expected_hmis events; presumed success. Check dmesg." echo "" done net-next.git/log/sound/isa?id=cf3e80df13e534eb34a85835d5357c78d8689199'>isa/Makefile
AgeCommit message (Expand)AuthorFilesLines