aboutsummaryrefslogtreecommitdiff
path: root/localversion-rt
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2013-04-23 16:10:00 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-05-02 14:32:22 -0400
commitc6c5c6827d1f944aa0d899dfcf8d087966b8a82f (patch)
tree5b8651d4d1ca6280fedc03ac9557d44a9ee45a8f /localversion-rt
parentf0fca720893ef22bde965423503e40c7635de9d0 (diff)
swap: Use unique local lock name for swap_lock
From lib/Kconfig.debug on CONFIG_FORCE_WEAK_PER_CPU: ---- s390 and alpha require percpu variables in modules to be defined weak to work around addressing range issue which puts the following two restrictions on percpu variable definitions. 1. percpu symbols must be unique whether static or not 2. percpu variables can't be defined inside a function To ensure that generic code follows the above rules, this option forces all percpu variables to be defined as weak. ---- The addition of the local IRQ swap_lock in mm/swap.c broke this config as the name "swap_lock" is used through out the kernel. Just do a "git grep swap_lock" to see, and the new swap_lock is a local lock which defines the swap_lock for per_cpu. The fix was to rename swap_lock to swapvec_lock which keeps it unique. Reported-by: Mike Galbraith <bitbucket@online.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'localversion-rt')
0 files changed, 0 insertions, 0 deletions