hc
2024-11-01 2f529f9b558ca1c1bd74be7437a84e4711743404
kernel/lib/smp_processor_id.c
....@@ -7,12 +7,16 @@
77 #include <linux/export.h>
88 #include <linux/kprobes.h>
99 #include <linux/sched.h>
10
+#include <linux/irqstage.h>
1011
1112 noinstr static
1213 unsigned int check_preemption_disabled(const char *what1, const char *what2)
1314 {
1415 int this_cpu = raw_smp_processor_id();
1516
17
+ if (hard_irqs_disabled() || !running_inband())
18
+ goto out;
19
+
1620 if (likely(preempt_count()))
1721 goto out;
1822