diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-19 21:44:31 +0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-04-19 21:49:41 +0400 |
commit | 4bc1dca4b0eb4dfbf100895bfc1256f21e3c901a (patch) | |
tree | 4ccfc207a0b55cfad4247f49bd1bce03d5034560 /arch/powerpc/boot/dts/mpc8541cds.dts | |
parent | cbd8a9d2cd6f576ca41022599341bbd8be1b0b27 (diff) | |
download | linux-4bc1dca4b0eb4dfbf100895bfc1256f21e3c901a.tar.xz |
UBI: fix mean EC calculation
(a + b) / (c + d) != a / c + b / d. The old code errornously
assumed this incorrect formuld. Instead, just sum all erase
counters in a 64-bit variable and divide to the number of EBs
at the end.
Thanks to Adrian Hunter for pointing this out.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'arch/powerpc/boot/dts/mpc8541cds.dts')
0 files changed, 0 insertions, 0 deletions