diff options
author | Manuel Lauss <manuel.lauss@gmail.com> | 2015-01-29 16:06:43 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-02-20 13:00:25 +0100 |
commit | 45a848f7fa067a81ae606bb06b2edcdf53772eac (patch) | |
tree | a79da368c9d9031f92f1333d7ce9528894a1dd1d /arch/mips/alchemy/common/clock.c | |
parent | 51f105d3074e8711698902ff89fcdc56193389ff (diff) | |
download | op-kernel-dev-45a848f7fa067a81ae606bb06b2edcdf53772eac.zip op-kernel-dev-45a848f7fa067a81ae606bb06b2edcdf53772eac.tar.gz |
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>
Diffstat (limited to 'arch/mips/alchemy/common/clock.c')
-rw-r--r-- | arch/mips/alchemy/common/clock.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/alchemy/common/clock.c b/arch/mips/alchemy/common/clock.c index ade7337..3612d76 100644 --- a/arch/mips/alchemy/common/clock.c +++ b/arch/mips/alchemy/common/clock.c @@ -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, }; |