]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ARM: ux500: cpuidle: replace for_each_online_cpu by for_each_possible_cpu
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 23 Apr 2013 08:54:32 +0000 (08:54 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Apr 2013 11:45:22 +0000 (13:45 +0200)
commit80b1c1999edbba3a411335f1650f0d92da391516
treeb02090b833a7b7fb48d21c225df48b0ccbea6804
parent554c06ba3ee29cf453fca17e9e61120b75aa476d
ARM: ux500: cpuidle: replace for_each_online_cpu by for_each_possible_cpu

All the drivers are using, in their initialization function, the
for_each_possible_cpu macro.

Using for_each_online_cpu means the driver must handle the initialization
of the cpuidle device when a cpu is up which is not the case here.

Change the macro to for_each_possible_cpu as that fix the hotplug
initialization and make the initialization routine consistent with the
rest of the code in the different drivers.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm/mach-ux500/cpuidle.c