Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102039228
D47002.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D47002.diff
View Options
diff --git a/sys/arm/arm/mp_machdep.c b/sys/arm/arm/mp_machdep.c
--- a/sys/arm/arm/mp_machdep.c
+++ b/sys/arm/arm/mp_machdep.c
@@ -30,6 +30,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
+#include <sys/intr.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/mutex.h>
@@ -51,7 +52,6 @@
#include <machine/debug_monitor.h>
#include <machine/smp.h>
#include <machine/pcb.h>
-#include <machine/intr.h>
#include <machine/vmparam.h>
#ifdef VFP
#include <machine/vfp.h>
diff --git a/sys/arm/include/intr.h b/sys/arm/include/intr.h
--- a/sys/arm/include/intr.h
+++ b/sys/arm/include/intr.h
@@ -53,8 +53,6 @@
#define NIRQ 1024 /* XXX - It should be an option. */
#endif
-#include <sys/intr.h>
-
void arm_irq_memory_barrier(uintptr_t);
#endif /* _MACHINE_INTR_H */
diff --git a/sys/arm64/include/intr.h b/sys/arm64/include/intr.h
--- a/sys/arm64/include/intr.h
+++ b/sys/arm64/include/intr.h
@@ -38,8 +38,6 @@
INTR_ROOT_COUNT /* MUST BE LAST */
};
-#include <sys/intr.h>
-
#ifndef NIRQ
#define NIRQ 16384 /* XXX - It should be an option. */
#endif
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -51,6 +51,7 @@
#include <sys/conf.h>
#include <sys/cpuset.h>
#include <sys/interrupt.h>
+#include <sys/intr.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/malloc.h>
@@ -72,7 +73,6 @@
#include <machine/atomic.h>
#include <machine/cpu.h>
-#include <machine/intr.h>
#include <machine/smp.h>
#include <machine/stdarg.h>
diff --git a/sys/riscv/include/intr.h b/sys/riscv/include/intr.h
--- a/sys/riscv/include/intr.h
+++ b/sys/riscv/include/intr.h
@@ -45,8 +45,6 @@
#define NIRQ 1024
#endif
-#include <sys/intr.h>
-
enum {
IRQ_SOFTWARE_USER,
IRQ_SOFTWARE_SUPERVISOR,
diff --git a/sys/riscv/riscv/mp_machdep.c b/sys/riscv/riscv/mp_machdep.c
--- a/sys/riscv/riscv/mp_machdep.c
+++ b/sys/riscv/riscv/mp_machdep.c
@@ -44,6 +44,7 @@
#include <sys/bus.h>
#include <sys/cpu.h>
#include <sys/cpuset.h>
+#include <sys/intr.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/malloc.h>
@@ -59,7 +60,6 @@
#include <vm/vm_kern.h>
#include <vm/vm_map.h>
-#include <machine/intr.h>
#include <machine/smp.h>
#include <machine/sbi.h>
diff --git a/sys/riscv/riscv/timer.c b/sys/riscv/riscv/timer.c
--- a/sys/riscv/riscv/timer.c
+++ b/sys/riscv/riscv/timer.c
@@ -41,6 +41,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bus.h>
+#include <sys/intr.h>
#include <sys/kernel.h>
#include <sys/module.h>
#include <sys/rman.h>
@@ -50,7 +51,6 @@
#include <sys/watchdog.h>
#include <machine/cpufunc.h>
-#include <machine/intr.h>
#include <machine/md_var.h>
#include <machine/sbi.h>
diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c
--- a/sys/riscv/riscv/trap.c
+++ b/sys/riscv/riscv/trap.c
@@ -37,11 +37,12 @@
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/bus.h>
+#include <sys/intr.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/lock.h>
#include <sys/mutex.h>
-#include <sys/bus.h>
#include <sys/proc.h>
#include <sys/ptrace.h>
#include <sys/syscall.h>
@@ -63,7 +64,6 @@
#include <machine/pcpu.h>
#include <machine/resource.h>
-#include <machine/intr.h>
#ifdef KDTRACE_HOOKS
#include <sys/dtrace_bsd.h>
diff --git a/sys/sys/intr.h b/sys/sys/intr.h
--- a/sys/sys/intr.h
+++ b/sys/sys/intr.h
@@ -35,6 +35,8 @@
#include <sys/systm.h>
+#include <machine/intr.h>
+
#define INTR_IRQ_INVALID 0xFFFFFFFF
enum intr_map_data_type {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 8:35 PM (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14508006
Default Alt Text
D47002.diff (3 KB)
Attached To
Mode
D47002: sys/intr.h: formally depend on machine/intr.h
Attached
Detach File
Event Timeline
Log In to Comment