mtd: tests: add count parameter to mtd_speedtest
authorAdrian Hunter <adrian.hunter@nokia.com>
Tue, 8 Feb 2011 10:02:39 +0000 (12:02 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:45 +0000 (14:22 +0000)
commitfc7fe7691c6bbd5f8f51a87e759770975c648410
tree131c8868bc2f17e3a91e3d077bf04b22a9ac8b3d
parente6da85685b2dec1e69e58366c22d1f883d6da575
mtd: tests: add count parameter to mtd_speedtest

By default mtd_speedtest uses all the eraseblocks of the
MTD partition being tested.  For large partitions a
smaller number is sufficient and makes running the test
quicker.  For that reason, add a parameter 'count' to
specify the maximum number of eraseblocks to use for
testing.

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/tests/mtd_speedtest.c