aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/percpu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index e26788e0da4..9be05cbe5ee 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -59,6 +59,18 @@
59extern void *pcpu_base_addr; 59extern void *pcpu_base_addr;
60extern const int *pcpu_unit_map; 60extern const int *pcpu_unit_map;
61 61
62enum pcpu_fc {
63 PCPU_FC_AUTO,
64 PCPU_FC_EMBED,
65 PCPU_FC_PAGE,
66 PCPU_FC_LPAGE,
67
68 PCPU_FC_NR,
69};
70extern const char *pcpu_fc_names[PCPU_FC_NR];
71
72extern enum pcpu_fc pcpu_chosen_fc;
73
62typedef void * (*pcpu_fc_alloc_fn_t)(unsigned int cpu, size_t size); 74typedef void * (*pcpu_fc_alloc_fn_t)(unsigned int cpu, size_t size);
63typedef void (*pcpu_fc_free_fn_t)(void *ptr, size_t size); 75typedef void (*pcpu_fc_free_fn_t)(void *ptr, size_t size);
64typedef void (*pcpu_fc_populate_pte_fn_t)(unsigned long addr); 76typedef void (*pcpu_fc_populate_pte_fn_t)(unsigned long addr);