Files

19 lines
527 B
C
Raw Permalink Normal View History

/* SPDX-License-Identifier: GPL-2.0 */
2005-04-16 15:20:36 -07:00
#ifndef __ALPHA_PERCPU_H
#define __ALPHA_PERCPU_H
2009-05-12 13:19:39 -07:00
/*
2009-06-24 15:13:52 +09: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.
*
2009-06-24 15:13:52 +09:00
* Always use weak definitions for percpu variables in modules.
*/
2009-06-24 15:13:52 +09:00
#if defined(MODULE) && defined(CONFIG_SMP)
#define ARCH_NEEDS_WEAK_PER_CPU
2009-05-12 13:19:39 -07:00
#endif
2009-06-24 15:13:52 +09:00
#include <asm-generic/percpu.h>
2005-04-16 15:20:36 -07:00
#endif /* __ALPHA_PERCPU_H */