aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.xyz>2017-03-18 04:19:43 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-03-20 10:34:05 +0100
commitb467e08a15563dede0d37d3233baa24fb97a7310 (patch)
tree4e8e49c564442885d61aa02141932aa71a378eae /kernel/sysctl_binary.c
parentclk: sunxi-ng: Fix div/mult settings for osc12M on A64 (diff)
downloadlinux-b467e08a15563dede0d37d3233baa24fb97a7310.tar.gz
linux-b467e08a15563dede0d37d3233baa24fb97a7310.zip
clk: sunxi-ng: fix recalc_rate formula of NKMP clocks
In commit e66f81bbd746 ("clk: sunxi-ng: Implement factors offsets"), the final formula of NKMP clocks' recalc_rate is refactored; however, the refactored formula broke the calculation due to some C language operand priority problem -- the priority of operand >> is lower than * and /, makes the formula being parsed as "(parent_rate * n * k) >> (p / m)", but it should be "(parent_rate * n * k >> p) / m". Add the pair of parentheses to fix up this issue. This pair of parentheses used to exist in the old formula. Fixes: e66f81bbd746 ("clk: sunxi-ng: Implement factors offsets") Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
an>[PATCH] mm: improve function of sc->may_writepageChristoph Lameter1-3/+3 2006-02-01[PATCH] GFP_ZONETYPES: calculate from GFP_ZONEMASKAndy Whitcroft1-1/+4 2006-02-01[PATCH] GFP_ZONETYPES: add commentry on how to calculateAndy Whitcroft1-0/+8 2006-02-01[PATCH] zone_reclaim: reclaim on memory only node supportChristoph Lameter1-1/+7 2006-02-01[PATCH] Optimize off-node performance of zone reclaimChristoph Lameter1-14/+15 2006-02-01[PATCH] Mark CONFIG_UFS_FS_WRITE as BROKENAlexey Dobriyan1-1/+1