]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
[ARM] Fix kernel/fork.c for lockdep on ARM
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 27 Aug 2006 11:26:34 +0000 (12:26 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 20 Sep 2006 13:58:35 +0000 (14:58 +0100)
commitb36e4758dc1b9ff1f6d97e951edba22366230d11
tree3419ae3d588bdc1ecc51748c63077cb18ac974c3
parent7ad1bcb25c5623f1f87c50fdf2272f58ff91db5a
[ARM] Fix kernel/fork.c for lockdep on ARM

ARM has interrupts enabled over context switches (iow, has
__ARCH_WANT_INTERRUPTS_ON_CTXSW defined.)  The lockdep code in fork.c
 assumes that interrupts are always disabled.  Fix this wrong
assumption by making the initialisation of 'p->hardirqs_enabled'
depend on __ARCH_WANT_INTERRUPTS_ON_CTXSW.

Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
kernel/fork.c