[BACK]Return to percpu.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / include / asm-s390

File: [Development] / linux-2.6-xfs / include / asm-s390 / Attic / percpu.h (download)

Revision 1.1, Tue Dec 30 23:58:53 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN

Initial Import 2.6.0

#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__ */