From: MyungJoo Ham Date: Tue, 23 Nov 2010 10:39:23 +0000 (+0100) Subject: ARM: 6490/1: MM: bugfix: initialize spinlock for init_mm.context X-Git-Tag: v2.6.37-rc4~31^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28c22d7dc99486ef4186dde41d5260e75b3076f7;p=pandora-kernel.git ARM: 6490/1: MM: bugfix: initialize spinlock for init_mm.context init_mm used at kernel/sched.c:idle_task_exit() has spin_lock (init_mm.context.id_lock) that is not initialized when spin_lock/unlock is called at an ARM machine. Note that mm_struct.context.id_lock is usually initialized except for the instance of init_mm at linux/arch/arm/mm/context.c Not initializing this spinlock incurs "BUG: pinlock bad magic" warning when spinlock debug is enabled. We have observed such instances when testing PM in S5PC210 machines. Signed-off-by: MyungJoo Ham Signed-off-by: Kyungmin Park Signed-off-by: Russell King --- Reading git-diff-tree failed