]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - arch/score/kernel/traps.c
sched/headers: Prepare for new header dependencies before moving code to <linux/sched...
[mirror_ubuntu-jammy-kernel.git] / arch / score / kernel / traps.c
index 2b22bcf02c27e8559adc3aee6e7c61bb770a6109..8a54d320fb41db6dc90312626721c4dfdd1aef51 100644 (file)
@@ -24,7 +24,8 @@
  */
 
 #include <linux/extable.h>
-#include <linux/sched.h>
+#include <linux/sched/signal.h>
+#include <linux/sched/debug.h>
 
 #include <asm/cacheflush.h>
 #include <asm/irq.h>
@@ -336,7 +337,7 @@ void __init trap_init(void)
        set_except_vector(18, handle_dbe);
        flush_icache_range(DEBUG_VECTOR_BASE_ADDR, IRQ_VECTOR_BASE_ADDR);
 
-       atomic_inc(&init_mm.mm_count);
+       mmgrab(&init_mm);
        current->active_mm = &init_mm;
        cpu_cache_init();
 }