]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8063/1: bL_switcher: fix individual online status reporting of removed CPUs
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 23 May 2014 21:31:44 +0000 (22:31 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 28 May 2014 15:33:02 +0000 (16:33 +0100)
commit1f53c0771a73a6922795d6f978ecfa5d9500f3ef
tree2b70ba0135ae5e33953ffc5273d24e163747077a
parent6e2367afd2e93457a0b7071bcf85914c6530b877
ARM: 8063/1: bL_switcher: fix individual online status reporting of removed CPUs

The content of /sys/devices/system/cpu/cpu*/online  is still 1 for those
CPUs that the switcher has removed even though the global state in
/sys/devices/system/cpu/online is updated correctly.

It turns out that commit 739379f35f ("Driver core: Use generic
offline/online for CPU offline/online") has changed the way those files
retrieve their content by relying on on the generic attribute handling
code.  The switcher, by calling cpu_down() directly, bypasses this
handling and the attribute value doesn't get updated.

Fix this by calling device_offline()/device_online() instead.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/bL_switcher.c