ARM: 7778/1: smp_twd: twd_update_frequency need be run on all online CPUs
authorJason Liu <r64343@freescale.com>
Mon, 1 Jul 2013 08:53:30 +0000 (09:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 9 Jul 2013 21:12:04 +0000 (22:12 +0100)
commitcbbe6f82b489e7ceba4ad7c833bd3a76cd0084cb
treed761028050940cf1ac61a68aadb213b4883ddb83
parentfd832478422834be03029ffab6df96f4df35f3e6
ARM: 7778/1: smp_twd: twd_update_frequency need be run on all online CPUs

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.

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>
Cc: stable@vger.kernel.org
Acked-by: Linus Walleij <linus.walleij@linaro.org>
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>
arch/arm/kernel/smp_twd.c