]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/mm/pageattr.c
x86/mm/ftrace: Do not bug in early boot on irqs_disabled in cpu_flush_range()
[karo-tx-linux.git] / arch / x86 / mm / pageattr.c
index 56b22fa504dfa8818ab6f301a90f712e1cf06bb9..c8520b2c62d252f774f7c6b9df83eefa6a5925c2 100644 (file)
@@ -24,6 +24,7 @@
 #include <asm/pgalloc.h>
 #include <asm/proto.h>
 #include <asm/pat.h>
+#include <asm/set_memory.h>
 
 /*
  * The current flushing context - we pass it instead of 5 arguments:
@@ -185,7 +186,7 @@ static void cpa_flush_range(unsigned long start, int numpages, int cache)
        unsigned int i, level;
        unsigned long addr;
 
-       BUG_ON(irqs_disabled());
+       BUG_ON(irqs_disabled() && !early_boot_irqs_disabled);
        WARN_ON(PAGE_ALIGN(start) != start);
 
        on_each_cpu(__cpa_flush_range, NULL, 1);