Skip to content

Commit fe9d4f5

Browse files
Alexey DobriyanLinus Torvalds
authored andcommitted
Add kernel/notifier.c
There is separate notifier header, but no separate notifier .c file. Extract notifier code out of kernel/sys.c which will remain for misc syscalls I hope. Merge kernel/die_notifier.c into kernel/notifier.c. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 3ed75eb commit fe9d4f5

5 files changed

Lines changed: 543 additions & 571 deletions

File tree

‎include/linux/notifier.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,7 @@ static inline int notifier_to_errno(int ret)
240240
#define KBD_KEYSYM 0x0004 /* Keyboard keysym */
241241
#define KBD_POST_KEYSYM 0x0005 /* Called after keyboard keysym interpretation */
242242

243+
extern struct blocking_notifier_head reboot_notifier_list;
244+
243245
#endif /* __KERNEL__ */
244246
#endif /* _LINUX_NOTIFIER_H */

‎kernel/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
88
signal.o sys.o kmod.o workqueue.o pid.o \
99
rcupdate.o extable.o params.o posix-timers.o \
1010
kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
11-
hrtimer.o rwsem.o latency.o nsproxy.o srcu.o die_notifier.o \
12-
utsname.o sysctl_check.o
11+
hrtimer.o rwsem.o latency.o nsproxy.o srcu.o \
12+
utsname.o sysctl_check.o notifier.o
1313

1414
obj-$(CONFIG_STACKTRACE) += stacktrace.o
1515
obj-y += time/

‎kernel/die_notifier.c‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)