From: Nicolas Pitre Date: Fri, 23 May 2014 21:31:44 +0000 (+0100) Subject: ARM: 8063/1: bL_switcher: fix individual online status reporting of removed CPUs X-Git-Tag: omap-for-v3.16/fixes-against-rc1~125^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8517e7937d04ac7df9082c741fefc9c873065b;p=pandora-kernel.git 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 0902a9044f ("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 Signed-off-by: Russell King --- Reading git-diff-tree failed