File: percpu.h

package info (click to toggle)
linux-kernel-headers 2.5.999-test7-bk-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,268 kB
  • ctags: 214,024
  • sloc: ansic: 324,929; cpp: 783; makefile: 79; asm: 61; sh: 61
file content (14 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef __ARCH_S390_PERCPU__
#define __ARCH_S390_PERCPU__

#include <asm-generic/percpu.h>
#include <asm/lowcore.h>

/*
 * s390 uses the generic implementation for per cpu data, with the exception that
 * the offset of the cpu local data area is cached in the cpu's lowcore memory
 */
#undef __get_cpu_var
#define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, S390_lowcore.percpu_offset))

#endif /* __ARCH_S390_PERCPU__ */