Files
OrangePi_CM5/include/asm-sparc64/percpu.h
T

28 lines
647 B
C
Raw Normal View History

2005-04-16 15:20:36 -07:00
#ifndef __ARCH_SPARC64_PERCPU__
#define __ARCH_SPARC64_PERCPU__
#include <linux/compiler.h>
register unsigned long __local_per_cpu_offset asm("g5");
2005-04-16 15:20:36 -07:00
#ifdef CONFIG_SMP
extern void real_setup_per_cpu_areas(void);
2005-04-16 15:20:36 -07:00
extern unsigned long __per_cpu_base;
extern unsigned long __per_cpu_shift;
#define __per_cpu_offset(__cpu) \
(__per_cpu_base + ((unsigned long)(__cpu) << __per_cpu_shift))
2006-07-03 00:24:26 -07:00
#define per_cpu_offset(x) (__per_cpu_offset(x))
2005-04-16 15:20:36 -07:00
2008-01-30 23:27:58 +01:00
#define __my_cpu_offset __local_per_cpu_offset
2005-04-16 15:20:36 -07:00
#else /* ! SMP */
#define real_setup_per_cpu_areas() do { } while (0)
2005-04-16 15:20:36 -07:00
#endif /* SMP */
2008-01-30 23:27:58 +01:00
#include <asm-generic/percpu.h>
2005-04-16 15:20:36 -07:00
#endif /* __ARCH_SPARC64_PERCPU__ */