projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs/proc/base.c, kernel/latencytop.c: convert sprintf_symbol() to %ps
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
time
/
clocksource.c
diff --git
a/kernel/time/clocksource.c
b/kernel/time/clocksource.c
index c18d7efa1b4b10b0146466094016d74a69702c30..df140cd3ea473f36f8b7fc293ac5b79a916614f2 100644
(file)
--- a/
kernel/time/clocksource.c
+++ b/
kernel/time/clocksource.c
@@
-152,6
+152,7
@@
clocks_calc_mult_shift(u32 *mult, u32 *shift, u32 from, u32 to, u32 minsec)
*/
for (sft = 32; sft > 0; sft--) {
tmp = (u64) to << sft;
+ tmp += from / 2;
do_div(tmp, from);
if ((tmp >> sftacc) == 0)
break;