diff options
author | Tejun Heo <tj@kernel.org> | 2009-06-24 15:13:50 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-06-24 15:13:50 +0900 |
commit | 7c756e6e19e71f0327760d8955f7077118ebb2b1 (patch) | |
tree | e561b364701e974d44511445cb237d0039d3603b /lib/sha1.c | |
parent | 245b2e70eabd797932adb263a65da0bab3711753 (diff) | |
download | blackbird-op-linux-7c756e6e19e71f0327760d8955f7077118ebb2b1.tar.gz blackbird-op-linux-7c756e6e19e71f0327760d8955f7077118ebb2b1.zip |
percpu: implement optional weak percpu definitions
Some archs (alpha and s390) need to use weak definitions for percpu
variables in modules so that the compiler generates external
references for them.
This patch implements weak percpu definitions which arch can enable by
defining ARCH_NEEDS_WEAK_PER_CPU in arch percpu header file. This
weak definition adds 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 these restrictions are observed in generic code, config
option DEBUG_FORCE_WEAK_PER_CPU enables weak percpu definitions for
all cases.
This patch is inspired by Ivan Kokshaysky's alpha percpu patch.
[ Impact: stricter rules for percpu variables, one more debug config option ]
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Howells <dhowells@redhat.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Diffstat (limited to 'lib/sha1.c')
0 files changed, 0 insertions, 0 deletions