|
@@ -54,6 +54,26 @@ static unsigned long dma_reserve __initdata;
|
|
|
|
|
|
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
|
|
DEFINE_PER_CPU(struct mmu_gather, mmu_gathers);
|
|
|
|
|
|
|
|
+int direct_gbpages __meminitdata
|
|
|
|
+#ifdef CONFIG_DIRECT_GBPAGES
|
|
|
|
+ = 1
|
|
|
|
+#endif
|
|
|
|
+;
|
|
|
|
+
|
|
|
|
+static int __init parse_direct_gbpages_off(char *arg)
|
|
|
|
+{
|
|
|
|
+ direct_gbpages = 0;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+early_param("nogbpages", parse_direct_gbpages_off);
|
|
|
|
+
|
|
|
|
+static int __init parse_direct_gbpages_on(char *arg)
|
|
|
|
+{
|
|
|
|
+ direct_gbpages = 1;
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+early_param("gbpages", parse_direct_gbpages_on);
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* NOTE: pagetable_init alloc all the fixmap pagetables contiguous on the
|
|
* NOTE: pagetable_init alloc all the fixmap pagetables contiguous on the
|
|
* physical space so we can cache the place of the first one and move
|
|
* physical space so we can cache the place of the first one and move
|