summaryrefslogtreecommitdiffstats
path: root/mm/swapfile.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-03-10 10:57:54 +0100
committerTejun Heo <tj@kernel.org>2010-03-29 16:07:12 +0200
commit10fad5e46f6c7bdfb01b1a012380a38e3c6ab346 (patch)
tree9ec6e3955e7f879f64ea79812cf5ecd41baa6939 /mm/swapfile.c
parentmodule: encapsulate percpu handling better and record percpu_size (diff)
downloadlinux-10fad5e46f6c7bdfb01b1a012380a38e3c6ab346.tar.xz
linux-10fad5e46f6c7bdfb01b1a012380a38e3c6ab346.zip
percpu, module: implement and use is_kernel/module_percpu_address()
lockdep has custom code to check whether a pointer belongs to static percpu area which is somewhat broken. Implement proper is_kernel/module_percpu_address() and replace the custom code. On UP, percpu variables are regular static variables and can't be distinguished from them. Always return %false on UP. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions