]> www.infradead.org Git - mtd-utils.git/commit
mtd-tests: flash_speed: Generalize read_eraseblock_by_2pages()
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Aug 2024 09:46:27 +0000 (11:46 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 8 Oct 2024 06:14:53 +0000 (08:14 +0200)
commit661841fe2fbd3cb43c15eb6f760bfbbb1883c793
treeef72f9bdd85d1fce32aa7482e482005402d61b26
parenta22a7fe5636a1babcc2fa0a9b3836c3ce5f3d0fd
mtd-tests: flash_speed: Generalize read_eraseblock_by_2pages()

Right now there are only 2 pages that may be read continuously, but why
not trying more? At least when the continuous feature is out, this type
of benchmarking will be interesting. In order to facilitate later
additions, lets make this helper more generic and accept a global
'npages' variable as parameter (because this function is called in a
macro, it is simpler like that).

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/mtd-tests/flash_speed.c