aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_module.c
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2004-08-20 21:47:48 +0000
committerDon Lewis <truckman@FreeBSD.org>2004-08-20 21:47:48 +0000
commit1a1c04b6b3b8bf09b04915160b30c8778a82bf0a (patch)
treefba4b3ebc7e90cb82ea165360bddefe85c69c6da /sys/kern/kern_module.c
parent8ded6540282729fcf8a3688e08041beab32d9fdc (diff)
Notes
Diffstat (limited to 'sys/kern/kern_module.c')
-rw-r--r--sys/kern/kern_module.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_module.c b/sys/kern/kern_module.c
index 9dfe3ba21bd7..cecb2e1beeac 100644
--- a/sys/kern/kern_module.c
+++ b/sys/kern/kern_module.c
@@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/proc.h>
#include <sys/lock.h>
#include <sys/mutex.h>
+#include <sys/reboot.h>
#include <sys/sx.h>
#include <sys/module.h>
#include <sys/linker.h>
@@ -94,6 +95,8 @@ module_shutdown(void *arg1, int arg2)
{
module_t mod;
+ if (arg2 & RB_NOSYNC)
+ return;
MOD_SLOCK;
TAILQ_FOREACH(mod, &modules, link)
MOD_EVENT(mod, MOD_SHUTDOWN);