Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Read-Copy Update notifiers, initially RCU CPU stall notifier.
|
|
* Separate from rcupdate.h to avoid #include loops.
|
|
*
|
|
* Copyright (C) 2023 Paul E. McKenney.
|
|
*/
|
|
|
|
#ifndef __LINUX_RCU_NOTIFIER_H
|
|
#define __LINUX_RCU_NOTIFIER_H
|
|
|
|
// Actions for RCU CPU stall notifier calls.
|
|
#define RCU_STALL_NOTIFY_NORM 1
|
|
#define RCU_STALL_NOTIFY_EXP 2
|
|
|
|
#if defined(CONFIG_RCU_STALL_COMMON) && defined(CONFIG_RCU_CPU_STALL_NOTIFIER)
|
|
|
|
#include <linux/notifier.h>
|
|
#include <linux/types.h>
|
|
|
|
int rcu_stall_chain_notifier_register(struct notifier_block *n);
|
|
int rcu_stall_chain_notifier_unregister(struct notifier_block *n);
|
|
|
|
#else // #if defined(CONFIG_RCU_STALL_COMMON) && defined(CONFIG_RCU_CPU_STALL_NOTIFIER)
|
|
|
|
// No RCU CPU stall warnings in Tiny RCU.
|
|
static inline int rcu_stall_chain_notifier_register(struct notifier_block *n) { return -EEXIST; }
|
|
static inline int rcu_stall_chain_notifier_unregister(struct notifier_block *n) { return -ENOENT; }
|
|
|
|
#endif // #else // #if defined(CONFIG_RCU_STALL_COMMON) && defined(CONFIG_RCU_CPU_STALL_NOTIFIER)
|
|
|
|
#endif /* __LINUX_RCU_NOTIFIER_H */
|