From: Linus Torvalds Date: Mon, 3 Aug 2009 05:08:48 +0000 (+0900) Subject: x86, percpu: Add 'percpu_read_stable()' interface for cacheable accesses X-Git-Tag: v2.6.32-rc1~706^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed8d9adf357ec331603fa1049510399812cea7e5;p=pandora-kernel.git x86, percpu: Add 'percpu_read_stable()' interface for cacheable accesses This is very useful for some common things like 'get_current()' and 'get_thread_info()', which can be used multiple times in a function, and where the result is cacheable. tj: Added the magical undocumented "P" modifier to UP __percpu_arg() to force gcc to dereference the pointer value passed in via the "p" input constraint. Without this, percpu_read_stable() returns the address of the percpu variable. Also added comment explaining the difference between percpu_read() and percpu_read_stable(). Signed-off-by: Linus Torvalds Signed-off-by: Tejun Heo Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed