From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 08:20:59 +0000 Subject: [PATCH] kernel_5.10 no rt --- kernel/include/linux/hardirq.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/include/linux/hardirq.h b/kernel/include/linux/hardirq.h index 76878b3..754f67a 100644 --- a/kernel/include/linux/hardirq.h +++ b/kernel/include/linux/hardirq.h @@ -6,7 +6,6 @@ #include <linux/preempt.h> #include <linux/lockdep.h> #include <linux/ftrace_irq.h> -#include <linux/sched.h> #include <linux/vtime.h> #include <asm/hardirq.h> @@ -33,9 +32,9 @@ */ #define __irq_enter() \ do { \ + account_irq_enter_time(current); \ preempt_count_add(HARDIRQ_OFFSET); \ lockdep_hardirq_enter(); \ - account_hardirq_enter(current); \ } while (0) /* @@ -63,8 +62,8 @@ */ #define __irq_exit() \ do { \ - account_hardirq_exit(current); \ lockdep_hardirq_exit(); \ + account_irq_exit_time(current); \ preempt_count_sub(HARDIRQ_OFFSET); \ } while (0) @@ -116,6 +115,7 @@ do { \ lockdep_off(); \ arch_nmi_enter(); \ + printk_nmi_enter(); \ BUG_ON(in_nmi() == NMI_MASK); \ __preempt_count_add(NMI_OFFSET + HARDIRQ_OFFSET); \ } while (0) @@ -134,6 +134,7 @@ do { \ BUG_ON(!in_nmi()); \ __preempt_count_sub(NMI_OFFSET + HARDIRQ_OFFSET); \ + printk_nmi_exit(); \ arch_nmi_exit(); \ lockdep_on(); \ } while (0) -- Gitblit v1.6.2