]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: smp: avoid incrementing mm_users on CPU startup
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 18 Dec 2010 13:57:00 +0000 (13:57 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 18 Dec 2010 13:57:00 +0000 (13:57 +0000)
commit1ae1b5f053cf36bd0f913e83f3b136fec8152d4d
tree6cdbeadac1efdca5ec36e44e362e058da3def680
parentc15524a40a1603dc56a8691c4f50172fb86c23d8
ARM: smp: avoid incrementing mm_users on CPU startup

We should not be incrementing mm_users when we startup a secondary
CPU - doing so results in mm_users incrementing by one each time we
hotplug a CPU, which will eventually wrap, and will cause problems.

Other architectures such as x86 do not increment mm_users, but only
mm_count, so we follow that pattern.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/smp.c