percpu.h 595 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6 7
#ifndef __ARCH_S390_PERCPU__
#define __ARCH_S390_PERCPU__

/*
 * s390 uses its own implementation for per cpu data, the offset of
 * the cpu local data area is cached in the cpu's lowcore memory.
 */
8
#define __my_cpu_offset S390_lowcore.percpu_offset
L
Linus Torvalds 已提交
9

10 11 12 13 14 15 16
/*
 * For 64 bit module code, the module may be more than 4G above the
 * per cpu area, use weak definitions to force the compiler to
 * generate external references.
 */
#if defined(CONFIG_SMP) && defined(__s390x__) && defined(MODULE)
#define ARCH_NEEDS_WEAK_PER_CPU
L
Linus Torvalds 已提交
17 18
#endif

19
#include <asm-generic/percpu.h>
L
Linus Torvalds 已提交
20 21

#endif /* __ARCH_S390_PERCPU__ */