aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2013-07-01 04:53:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-21 21:21:34 -0400
commit766f6d2a32311196679b7b8771d60391bc8a4e9b (patch)
tree468dfd86dce38b268f86a4fbdb884373e9669caa /arch
parente6a01df4cd3a38e8dcc05d763c0f793b2f30c5f2 (diff)
ARM: 7778/1: smp_twd: twd_update_frequency need be run on all online CPUs
commit cbbe6f82b489e7ceba4ad7c833bd3a76cd0084cb upstream. When the local timer freq changed, the twd_update_frequency function should be run all the CPUs include itself, otherwise, the twd freq will not get updated and the local timer will not run correcttly. smp_call_function will run functions on all other CPUs, but not include himself, this is not correct,use on_each_cpu instead to fix this issue. Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Rob Herring <rob.herring@calxeda.com> Cc: Shawn Guo <shawn.guo@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Jason Liu <r64343@freescale.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/kernel/smp_twd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/smp_twd.c b/arch/arm/kernel/smp_twd.c
index 90525d9d290b..f6fd1d4398c6 100644
--- a/arch/arm/kernel/smp_twd.c
+++ b/arch/arm/kernel/smp_twd.c
@@ -120,7 +120,7 @@ static int twd_rate_change(struct notifier_block *nb,
120 * changing cpu. 120 * changing cpu.
121 */ 121 */
122 if (flags == POST_RATE_CHANGE) 122 if (flags == POST_RATE_CHANGE)
123 smp_call_function(twd_update_frequency, 123 on_each_cpu(twd_update_frequency,
124 (void *)&cnd->new_rate, 1); 124 (void *)&cnd->new_rate, 1);
125 125
126 return NOTIFY_OK; 126 return NOTIFY_OK;