From: Tejun Heo Date: Wed, 10 Mar 2010 09:57:54 +0000 (+0900) Subject: percpu, module: implement and use is_kernel/module_percpu_address() X-Git-Tag: v2.6.34-rc4~72^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10fad5e46f6c7bdfb01b1a012380a38e3c6ab346;p=pandora-kernel.git 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 Acked-by: Peter Zijlstra Cc: Rusty Russell Cc: Ingo Molnar --- Reading git-diff-tree failed