From: H. Peter Anvin Date: Fri, 21 Sep 2012 19:43:15 +0000 (-0700) Subject: x86, smap: Reduce the SMAP overhead for signal handling X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~68^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e88353d8b5f483bc1c873ad24ac2b59a6b66c73;p=pandora-kernel.git x86, smap: Reduce the SMAP overhead for signal handling Signal handling contains a bunch of accesses to individual user space items, which causes an excessive number of STAC and CLAC instructions. Instead, let get/put_user_try ... get/put_user_catch() contain the STAC and CLAC instructions. This means that get/put_user_try no longer nests, and furthermore that it is no longer legal to use user space access functions other than __get/put_user_ex() inside those blocks. However, these macros are x86-specific anyway and are only used in the signal-handling paths; a simple reordering of moving the larger subroutine calls out of the try...catch blocks resolves that problem. Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/r/1348256595-29119-12-git-send-email-hpa@linux.intel.com --- Reading git-diff-tree failed