PageRenderTime 27ms CodeModel.GetById 19ms app.highlight 4ms RepoModel.GetById 3ms app.codeStats 0ms

/arch/alpha/include/asm/percpu.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase
C++ Header | 18 lines | 7 code | 3 blank | 8 comment | 1 complexity | c879b4cdc6a2ed590942cec87fd18245 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, AGPL-1.0
 1#ifndef __ALPHA_PERCPU_H
 2#define __ALPHA_PERCPU_H
 3
 4/*
 5 * To calculate addresses of locally defined variables, GCC uses
 6 * 32-bit displacement from the GP. Which doesn't work for per cpu
 7 * variables in modules, as an offset to the kernel per cpu area is
 8 * way above 4G.
 9 *
10 * Always use weak definitions for percpu variables in modules.
11 */
12#if defined(MODULE) && defined(CONFIG_SMP)
13#define ARCH_NEEDS_WEAK_PER_CPU
14#endif
15
16#include <asm-generic/percpu.h>
17
18#endif /* __ALPHA_PERCPU_H */