MIPS: Alchemy: preset loops_per_jiffy based on CPU clock
This was lost during the rewrite of clock framework support. Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com> Cc: Linux-MIPS <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/9149/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
51f105d307
commit
45a848f7fa
@@ -133,6 +133,12 @@ static unsigned long alchemy_clk_cpu_recalc(struct clk_hw *hw,
|
||||
return t;
|
||||
}
|
||||
|
||||
void __init alchemy_set_lpj(void)
|
||||
{
|
||||
preset_lpj = alchemy_clk_cpu_recalc(NULL, ALCHEMY_ROOTCLK_RATE);
|
||||
preset_lpj /= 2 * HZ;
|
||||
}
|
||||
|
||||
static struct clk_ops alchemy_clkops_cpu = {
|
||||
.recalc_rate = alchemy_clk_cpu_recalc,
|
||||
};
|
||||
|
Reference in New Issue
Block a user