Skip to content

Commit 5634469

Browse files
committed
kernel/notifier: Remove CONFIG_SRCU
Now that the SRCU Kconfig option is unconditionally selected, there is no longer any point in conditional compilation based on CONFIG_SRCU. Therefore, remove the #ifdef. Signed-off-by: Paul E. McKenney <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: "Michał Mirosław" <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Alan Stern <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Reviewed-by: John Ogness <[email protected]>
1 parent bc636dc commit 5634469

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/notifier.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ int raw_notifier_call_chain(struct raw_notifier_head *nh,
456456
}
457457
EXPORT_SYMBOL_GPL(raw_notifier_call_chain);
458458

459-
#ifdef CONFIG_SRCU
460459
/*
461460
* SRCU notifier chain routines. Registration and unregistration
462461
* use a mutex, and call_chain is synchronized by SRCU (no locks).
@@ -573,8 +572,6 @@ void srcu_init_notifier_head(struct srcu_notifier_head *nh)
573572
}
574573
EXPORT_SYMBOL_GPL(srcu_init_notifier_head);
575574

576-
#endif /* CONFIG_SRCU */
577-
578575
static ATOMIC_NOTIFIER_HEAD(die_chain);
579576

580577
int notrace notify_die(enum die_val val, const char *str,

0 commit comments

Comments
 (0)