From: Hugh Dickins Date: Sat, 26 Apr 2008 23:39:36 +0000 (+0100) Subject: x86: vget_cycles() __always_inline X-Git-Tag: v2.6.26-rc1~367^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9752082560b440e6a45624569d26802e20d1b8b4;p=pandora-kernel.git x86: vget_cycles() __always_inline Mark vget_cycles() as __always_inline, so gcc is never tempted to make the vsyscall vread_tsc() dive into kernel text, with resulting SIGSEGV. This was a self-inflicted wound: I've not seen that happen with unhacked sources; but for debug reasons I'd changed my x86/Makefile to compile no-unit-at-a-time, and that in conjunction with OPTIMIZE_INLINING=y ended up with vget_cycles() in kernel text. Perhaps it can happen in other ways: safer to use __always_inline. Signed-off-by: Hugh Dickins Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed