diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2011-12-18 18:28:50 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-12-18 18:35:08 -0500 |
commit | 1095843489f7a805106dc0cc39187d5df960d11a (patch) | |
tree | d2f6edd0950e9dc753462ebc6f2c469db0704dcb /arch/arm | |
parent | c15def1cc30edeaa74a97205c936be82cdc86df6 (diff) |
ARM: ux500: fix the smp_twd clock calculation
The clock for the smp_twd block is not equal to the CPU
frequency, actually it is divided by two, so fix this,
and set the initial frequency to half of 1GHz which is
the most common case.
Reported-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/clock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/clock.c b/arch/arm/mach-ux500/clock.c index 2ebf998bc77d..737907537004 100644 --- a/arch/arm/mach-ux500/clock.c +++ b/arch/arm/mach-ux500/clock.c | |||
@@ -651,7 +651,7 @@ err_out: | |||
651 | late_initcall(clk_debugfs_init); | 651 | late_initcall(clk_debugfs_init); |
652 | #endif /* defined(CONFIG_DEBUG_FS) */ | 652 | #endif /* defined(CONFIG_DEBUG_FS) */ |
653 | 653 | ||
654 | unsigned long clk_smp_twd_rate = 400000000; | 654 | unsigned long clk_smp_twd_rate = 500000000; |
655 | 655 | ||
656 | unsigned long clk_smp_twd_get_rate(struct clk *clk) | 656 | unsigned long clk_smp_twd_get_rate(struct clk *clk) |
657 | { | 657 | { |
@@ -677,7 +677,7 @@ static int clk_twd_cpufreq_transition(struct notifier_block *nb, | |||
677 | 677 | ||
678 | if (state == CPUFREQ_PRECHANGE) { | 678 | if (state == CPUFREQ_PRECHANGE) { |
679 | /* Save frequency in simple Hz */ | 679 | /* Save frequency in simple Hz */ |
680 | clk_smp_twd_rate = f->new * 1000; | 680 | clk_smp_twd_rate = (f->new * 1000) / 2; |
681 | } | 681 | } |
682 | 682 | ||
683 | return NOTIFY_OK; | 683 | return NOTIFY_OK; |