hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/linux/notifier.h
....@@ -58,7 +58,7 @@
5858 };
5959
6060 struct atomic_notifier_head {
61
- raw_spinlock_t lock;
61
+ spinlock_t lock;
6262 struct notifier_block __rcu *head;
6363 };
6464
....@@ -78,7 +78,7 @@
7878 };
7979
8080 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { \
81
- raw_spin_lock_init(&(name)->lock); \
81
+ spin_lock_init(&(name)->lock); \
8282 (name)->head = NULL; \
8383 } while (0)
8484 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { \
....@@ -95,7 +95,7 @@
9595 cleanup_srcu_struct(&(name)->srcu);
9696
9797 #define ATOMIC_NOTIFIER_INIT(name) { \
98
- .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \
98
+ .lock = __SPIN_LOCK_UNLOCKED(name.lock), \
9999 .head = NULL }
100100 #define BLOCKING_NOTIFIER_INIT(name) { \
101101 .rwsem = __RWSEM_INITIALIZER((name).rwsem), \