diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-11-27 14:46:56 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2013-11-27 14:46:56 +0530 |
commit | df67c43bc5f7535779ec9b711f76d17db22c0eca (patch) | |
tree | 1c99488b53b3d8e591c217cd3ff43ec29ba9affb | |
parent | 4ffaeecb278c72503f1ec41a6c4108389ae00c02 (diff) |
temp
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
-rwxr-xr-x | is-cpu-isolated.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/is-cpu-isolated.sh b/is-cpu-isolated.sh index 8a5772d..d22bd99 100755 --- a/is-cpu-isolated.sh +++ b/is-cpu-isolated.sh @@ -43,20 +43,19 @@ get_isolation_duration() { isdebug echo "" new_count=$(get_tick_count) - old_count=$new_count - - isdebug echo "initial count: " $old_count - - while [ $new_count -eq $old_count ] - do - new_count=$(get_tick_count) - done + isdebug echo "initial count: " $new_count x=0 while [ $x -lt $sample_count ] do let x=x+1 + old_count=$new_count + while [ $new_count -eq $old_count ] + do + new_count=$(get_tick_count) + done + isdebug echo "count locked: " $new_count old_count=$new_count; |