2005-04-16 15:20:36 -07:00
|
|
|
#ifndef __ALPHA_PERCPU_H
|
|
|
|
#define __ALPHA_PERCPU_H
|
2009-05-12 13:19:39 -07:00
|
|
|
|
2008-06-20 16:25:39 -07:00
|
|
|
/*
|
2009-06-23 23:13:52 -07:00
|
|
|
* To calculate addresses of locally defined variables, GCC uses
|
|
|
|
* 32-bit displacement from the GP. Which doesn't work for per cpu
|
|
|
|
* variables in modules, as an offset to the kernel per cpu area is
|
|
|
|
* way above 4G.
|
2008-06-20 16:25:39 -07:00
|
|
|
*
|
2009-06-23 23:13:52 -07:00
|
|
|
* Always use weak definitions for percpu variables in modules.
|
2008-06-20 16:25:39 -07:00
|
|
|
*/
|
2009-06-23 23:13:52 -07:00
|
|
|
#if defined(MODULE) && defined(CONFIG_SMP)
|
|
|
|
#define ARCH_NEEDS_WEAK_PER_CPU
|
2009-05-12 13:19:39 -07:00
|
|
|
#endif
|
|
|
|
|
2009-06-23 23:13:52 -07:00
|
|
|
#include <asm-generic/percpu.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
#endif /* __ALPHA_PERCPU_H */
|