mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 00:32:00 +00:00
reboot: move reboot_notifier_list to kernel/reboot.c
All the functions related to the reboot notifier list are in kernel/reboot.c. Move the list itself, too. As there are no direct users anymore, make the declaration static. Link: https://lkml.kernel.org/r/20241012-reboot_notifier_list-v1-1-6093bb9455ce@weissschuh.net Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
834b251b1d
commit
f2fa0fd4e7
@ -237,7 +237,5 @@ static inline int notifier_to_errno(int ret)
|
||||
#define KBD_KEYSYM 0x0004 /* Keyboard keysym */
|
||||
#define KBD_POST_KEYSYM 0x0005 /* Called after keyboard keysym interpretation */
|
||||
|
||||
extern struct blocking_notifier_head reboot_notifier_list;
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
#endif /* _LINUX_NOTIFIER_H */
|
||||
|
@ -5,18 +5,10 @@
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/rcupdate.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <linux/reboot.h>
|
||||
|
||||
#define CREATE_TRACE_POINTS
|
||||
#include <trace/events/notifier.h>
|
||||
|
||||
/*
|
||||
* Notifier list for kernel code which wants to be called
|
||||
* at shutdown. This is used to stop any idling DMA operations
|
||||
* and the like.
|
||||
*/
|
||||
BLOCKING_NOTIFIER_HEAD(reboot_notifier_list);
|
||||
|
||||
/*
|
||||
* Notifier chain core routines. The exported routines below
|
||||
* are layered on top of these, with appropriate locking added.
|
||||
|
@ -72,6 +72,13 @@ static bool poweroff_fallback_to_halt;
|
||||
*/
|
||||
void __weak (*pm_power_off)(void);
|
||||
|
||||
/*
|
||||
* Notifier list for kernel code which wants to be called
|
||||
* at shutdown. This is used to stop any idling DMA operations
|
||||
* and the like.
|
||||
*/
|
||||
static BLOCKING_NOTIFIER_HEAD(reboot_notifier_list);
|
||||
|
||||
/**
|
||||
* emergency_restart - reboot the system
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user