summaryrefslogtreecommitdiff
path: root/arch/blackfin/include/asm/percpu.h
blob: 797c0c1650695291e2c99f0e8a632c529674b1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __ARCH_BLACKFIN_PERCPU__
#define __ARCH_BLACKFIN_PERCPU__

#include <asm-generic/percpu.h>

#ifdef CONFIG_MODULES
#define PERCPU_MODULE_RESERVE 8192
#else
#define PERCPU_MODULE_RESERVE 0
#endif

#define PERCPU_ENOUGH_ROOM \
	(ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \
	 PERCPU_MODULE_RESERVE)

#endif	/* __ARCH_BLACKFIN_PERCPU__ */