From: Vijaya Kumar K Date: Tue, 28 Jan 2014 11:20:20 +0000 (+0530) Subject: KGDB: make kgdb_breakpoint() as noinline X-Git-Tag: v3.15-rc1~164^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d498d4b47fb3050f2f7840cc49251f87f04d1ca9;p=pandora-kernel.git KGDB: make kgdb_breakpoint() as noinline The function kgdb_breakpoint() sets up break point at compile time by calling arch_kgdb_breakpoint(); Though this call is surrounded by wmb() barrier, the compile can still re-order the break point, because this scheduling barrier is not a code motion barrier in gcc. Making kgdb_breakpoint() as noinline solves this problem of code reording around break point instruction and also avoids problem of being called as inline function from other places More details about discussion on this can be found here http://comments.gmane.org/gmane.linux.ports.arm.kernel/269732 Signed-off-by: Vijaya Kumar K Acked-by: Will Deacon Acked-by: Jason Wessel Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed