arm64: entry: fix non-NMI kernel<->kernel transitions
[linux-2.6-microblaze.git] / arch / arm64 / include / asm / daifflags.h
index ec213b4..1c26d7b 100644 (file)
@@ -128,6 +128,9 @@ static inline void local_daif_inherit(struct pt_regs *regs)
 {
        unsigned long flags = regs->pstate & DAIF_MASK;
 
+       if (interrupts_enabled(regs))
+               trace_hardirqs_on();
+
        /*
         * We can't use local_daif_restore(regs->pstate) here as
         * system_has_prio_mask_debugging() won't restore the I bit if it can