diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2016-02-15 14:34:35 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2016-02-15 14:34:35 +0000 |
commit | 0cc5515a857dcb298f6cd44184a933999711227b (patch) | |
tree | 6af0916bca2ce766531661983e1e659bc984d704 /sys/kern/subr_intr.c | |
parent | 632381ed9d54f8aaed2c9e5846bcc6ac04087d87 (diff) | |
download | src-0cc5515a857dcb298f6cd44184a933999711227b.tar.gz src-0cc5515a857dcb298f6cd44184a933999711227b.zip |
Allow MIPS INTRNG code to be built without FDT support.
This patch allows the newly imported INTRNG code to be built without necessarily
having FDT support in the kernel. This may be useful for some MIPS platforms
that wish to move to INTRNG, but not to FDT at the same time.
Basically all the code is already within ifdef's where FDT is concerned,
it's just the headers that aren't.
Submitted by: Stanislav Galabov <sgalabov@gmail.com>
Differential Revision: https://reviews.freebsd.org/D5249
Notes
Notes:
svn path=/head/; revision=295625
Diffstat (limited to 'sys/kern/subr_intr.c')
-rw-r--r-- | sys/kern/subr_intr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c index 813f9eccdbea..9e7fcaf422d8 100644 --- a/sys/kern/subr_intr.c +++ b/sys/kern/subr_intr.c @@ -60,11 +60,13 @@ __FBSDID("$FreeBSD$"); #include <machine/smp.h> #include <machine/stdarg.h> +#ifdef FDT #include <dev/ofw/openfirm.h> #include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_bus_subr.h> #include <dev/fdt/fdt_common.h> +#endif #ifdef DDB #include <ddb/ddb.h> |