From: Jan Beulich Date: Fri, 18 Dec 2009 16:12:56 +0000 (+0000) Subject: x86-64: Modify copy_user_generic() alternatives mechanism X-Git-Tag: v2.6.34-rc1~252^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b1d9258181bae199dc940f4bd0298126b9a73d9;p=pandora-kernel.git x86-64: Modify copy_user_generic() alternatives mechanism In order to avoid unnecessary chains of branches, rather than implementing copy_user_generic() as a function consisting of just a single (possibly patched) branch, instead properly deal with patching call instructions in the alternative instructions framework, and move the patching into the callers. As a follow-on, one could also introduce something like __EXPORT_SYMBOL_ALT() to avoid patching call sites in modules. Signed-off-by: Jan Beulich Cc: Nick Piggin Cc: Linus Torvalds Cc: Andrew Morton LKML-Reference: <4B2BB8180200007800026AE7@vpn.id2.novell.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed