# @name Watchdog timer with cpu affinity
# @desc Check that watchdog timer works fine when assigned to any cpu instance
# @requires smp && watchdog

SMP_S_FUNC_WATCHDOG_NO-LB_CORE1 source 'common.sh'; num_cores=`cat /sys/devices/system/cpu/online`; echo $num_cores | grep -E '[[:digit:]]+\-' > /dev/null && run_processes.sh -c "/opt/ltp/runltp -f ddt/wdt_test -s WDT_S_FUNC_SETTIMEOUT" -n 1 -a 0x1 -d 1
SMP_S_FUNC_WATCHDOG_NO-LB_CORE2 source 'common.sh'; num_cores=`cat /sys/devices/system/cpu/online`; echo $num_cores | grep -E '[[:digit:]]+\-' > /dev/null && run_processes.sh -c "/opt/ltp/runltp -f ddt/wdt_test -s WDT_S_FUNC_SETTIMEOUT" -n 1 -a 0x2 -d 1
