git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbd8a9d
)
UBI: fix mean EC calculation
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sat, 19 Apr 2008 17:44:31 +0000
(20:44 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Sat, 19 Apr 2008 17:49:41 +0000
(20:49 +0300)
(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>
No differences found