Commit 7bd1a3fb authored by Philippe Gerum's avatar Philippe Gerum

ipipe: notifier: enable atomic call from the head stage

parent d8cb868b
......@@ -5,6 +5,7 @@
#include <linux/rcupdate.h>
#include <linux/vmalloc.h>
#include <linux/reboot.h>
#include <linux/ipipe.h>
/*
* Notifier list for kernel code which wants to be called
......@@ -190,6 +191,9 @@ NOKPROBE_SYMBOL(__atomic_notifier_call_chain);
int atomic_notifier_call_chain(struct atomic_notifier_head *nh,
unsigned long val, void *v)
{
if (!ipipe_root_p)
return notifier_call_chain(&nh->head, val, v, -1, NULL);
return __atomic_notifier_call_chain(nh, val, v, -1, NULL);
}
EXPORT_SYMBOL_GPL(atomic_notifier_call_chain);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment