forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 95099d4622f8cb224d94e314c7a8e0df60b13f87
kernel/arch/sh/kernel/irq.c
....@@ -44,7 +44,7 @@
4444
4545 seq_printf(p, "%*s: ", prec, "NMI");
4646 for_each_online_cpu(j)
47
- seq_printf(p, "%10u ", nmi_count(j));
47
+ seq_printf(p, "%10u ", per_cpu(irq_stat.__nmi_count, j));
4848 seq_printf(p, " Non-maskable interrupts\n");
4949
5050 seq_printf(p, "%*s: %10u\n", prec, "ERR", atomic_read(&irq_err_count));
....@@ -148,6 +148,7 @@
148148 hardirq_ctx[cpu] = NULL;
149149 }
150150
151
+#ifndef CONFIG_PREEMPT_RT
151152 void do_softirq_own_stack(void)
152153 {
153154 struct thread_info *curctx;
....@@ -175,6 +176,7 @@
175176 "r5", "r6", "r7", "r8", "r9", "r15", "t", "pr"
176177 );
177178 }
179
+#endif
178180 #else
179181 static inline void handle_one_irq(unsigned int irq)
180182 {