Skip to content

Commit

Permalink
cpu-hotplug: fix the cpu dir index
Browse files Browse the repository at this point in the history
The cpu directory index is from 0.
We test from cpu1 because not all architecture support
cpu0 removable.

Signed-off-by: Wanlong Gao <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
  • Loading branch information
gaowanlong authored and Fengguang Wu committed Jun 24, 2015
1 parent 66474c3 commit 9956552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cpu-hotplug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ while :
do
for interval in 0 0.1 1
do
for i in $(seq $NUMBER_OF_CPUS)
for i in $(seq $((NUMBER_OF_CPUS - 1)))
do
sleep $interval
state=$(cat $CPUPATH/cpu$i/online)
Expand Down

0 comments on commit 9956552

Please sign in to comment.