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:
ca17749
)
serial: sh-sci: Updated calculation of bit error rate and bit rate
author
Nobuhiro Iwamatsu
<nobuhiro.iwamatsu.yj@renesas.com>
Mon, 14 Jul 2014 07:09:58 +0000
(16:09 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 01:14:44 +0000
(18:14 -0700)
Currently, the decimal point is discarded calculation of BRR.
Therefore, it can not calculate a value close to the correct value.
This patch fixes this problem by using DIV_ROUND_CLOSEST.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
No differences found