mcreboot: -h to indicate halting CPU in idle threads (e.g., in futex_wait())

This commit is contained in:
Balazs Gerofi
2017-12-18 11:22:15 +09:00
parent bf2f38051b
commit 589504dc33
5 changed files with 26 additions and 5 deletions

View File

@ -44,8 +44,9 @@ fi
turbo=""
ihk_irq=""
umask_old=`umask`
idle_halt=""
while getopts :tk:c:m:o:f:r:q:i:d:e: OPT
while getopts :tk:c:m:o:f:r:q:i:d:e:h OPT
do
case ${OPT} in
f) facility=${OPTARG}
@ -70,6 +71,8 @@ do
;;
i) mon_interval=${OPTARG}
;;
h) idle_halt="idle_halt"
;;
*) echo "invalid option -${OPT}" >&2
exit 1
esac
@ -408,7 +411,7 @@ if ! ${SBINDIR}/ihkosctl 0 load ${KERNDIR}/mckernel.img; then
fi
# Set kernel arguments
if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo dump_level=${DUMP_LEVEL} $extra_kopts"; then
if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo $idle_halt dump_level=${DUMP_LEVEL} $extra_kopts"; then
echo "error: setting kernel arguments" >&2
error_exit "os_created"
fi