percpu, module: implement and use is_kernel/module_percpu_address()
authorTejun Heo <tj@kernel.org>
Wed, 10 Mar 2010 09:57:54 +0000 (18:57 +0900)
committerTejun Heo <tj@kernel.org>
Mon, 29 Mar 2010 14:07:12 +0000 (23:07 +0900)
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>

No differences found