aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorStéphan Rafin <[email protected]>2016-11-03 23:53:56 +0000
committerMaxime Ripard <[email protected]>2016-11-04 07:49:46 +0000
commitac95330b96376550ae7a533d1396272d675adfa2 (patch)
tree88a09eba4e06228afa8ade78ab862ed106082f9d /lib/cpu-notifier-error-inject.c
parentclk: sunxi-ng: sun6i-a31: Force AHB1 clock to use PLL6 as parent (diff)
downloadkernel-ac95330b96376550ae7a533d1396272d675adfa2.tar.gz
kernel-ac95330b96376550ae7a533d1396272d675adfa2.zip
clk: sunxi: Fix M factor computation for APB1
commit cfa636886033 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct") introduced a regression for m factor computation in sun4i_get_apb1_factors function. The old code reassigned the "parent_rate" parameter to the targeted divisor value and was buggy for the returned frequency but not for the computed factors. Now, returned frequency is good but m factor is incorrectly computed (its max value 31 is always set resulting in a significantly slower frequency than the requested one...) This patch simply restores the original proper computation for m while keeping the good changes for returned rate. Fixes: cfa636886033 ("clk: sunxi: factors: Consolidate get_factors parameters into a struct") Signed-off-by: Stéphan Rafin <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions