|
@@ -402,6 +402,7 @@ int raw_notifier_call_chain(struct raw_notifier_head *nh,
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(raw_notifier_call_chain);
|
|
EXPORT_SYMBOL_GPL(raw_notifier_call_chain);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_SRCU
|
|
/*
|
|
/*
|
|
* SRCU notifier chain routines. Registration and unregistration
|
|
* SRCU notifier chain routines. Registration and unregistration
|
|
* use a mutex, and call_chain is synchronized by SRCU (no locks).
|
|
* use a mutex, and call_chain is synchronized by SRCU (no locks).
|
|
@@ -528,6 +529,8 @@ void srcu_init_notifier_head(struct srcu_notifier_head *nh)
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(srcu_init_notifier_head);
|
|
EXPORT_SYMBOL_GPL(srcu_init_notifier_head);
|
|
|
|
|
|
|
|
+#endif /* CONFIG_SRCU */
|
|
|
|
+
|
|
static ATOMIC_NOTIFIER_HEAD(die_chain);
|
|
static ATOMIC_NOTIFIER_HEAD(die_chain);
|
|
|
|
|
|
int notrace notify_die(enum die_val val, const char *str,
|
|
int notrace notify_die(enum die_val val, const char *str,
|