aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/percpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r--include/linux/percpu.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 70b7123f38c7..9909dc0e273a 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -26,16 +26,10 @@
26#define PCPU_MIN_ALLOC_SHIFT 2 26#define PCPU_MIN_ALLOC_SHIFT 2
27#define PCPU_MIN_ALLOC_SIZE (1 << PCPU_MIN_ALLOC_SHIFT) 27#define PCPU_MIN_ALLOC_SIZE (1 << PCPU_MIN_ALLOC_SHIFT)
28 28
29/* number of bits per page, used to trigger a scan if blocks are > PAGE_SIZE */
30#define PCPU_BITS_PER_PAGE (PAGE_SIZE >> PCPU_MIN_ALLOC_SHIFT)
31
32/* 29/*
33 * This determines the size of each metadata block. There are several subtle 30 * The PCPU_BITMAP_BLOCK_SIZE must be the same size as PAGE_SIZE as the
34 * constraints around this constant. The reserved region must be a multiple of 31 * updating of hints is used to manage the nr_empty_pop_pages in both
35 * PCPU_BITMAP_BLOCK_SIZE. Additionally, PCPU_BITMAP_BLOCK_SIZE must be a 32 * the chunk and globally.
36 * multiple of PAGE_SIZE or PAGE_SIZE must be a multiple of
37 * PCPU_BITMAP_BLOCK_SIZE to align with the populated page map. The unit_size
38 * also has to be a multiple of PCPU_BITMAP_BLOCK_SIZE to ensure full blocks.
39 */ 33 */
40#define PCPU_BITMAP_BLOCK_SIZE PAGE_SIZE 34#define PCPU_BITMAP_BLOCK_SIZE PAGE_SIZE
41#define PCPU_BITMAP_BLOCK_BITS (PCPU_BITMAP_BLOCK_SIZE >> \ 35#define PCPU_BITMAP_BLOCK_BITS (PCPU_BITMAP_BLOCK_SIZE >> \