From 04dd17822334871b23ea2862f7798fb0e0007777 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Sat, 11 May 2024 08:53:19 +0000 Subject: [PATCH] change otg to host mode --- kernel/include/linux/notifier.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/include/linux/notifier.h b/kernel/include/linux/notifier.h index 723bc2d..2fb373a 100644 --- a/kernel/include/linux/notifier.h +++ b/kernel/include/linux/notifier.h @@ -58,7 +58,7 @@ }; struct atomic_notifier_head { - raw_spinlock_t lock; + spinlock_t lock; struct notifier_block __rcu *head; }; @@ -78,7 +78,7 @@ }; #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { \ - raw_spin_lock_init(&(name)->lock); \ + spin_lock_init(&(name)->lock); \ (name)->head = NULL; \ } while (0) #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { \ @@ -95,7 +95,7 @@ cleanup_srcu_struct(&(name)->srcu); #define ATOMIC_NOTIFIER_INIT(name) { \ - .lock = __RAW_SPIN_LOCK_UNLOCKED(name.lock), \ + .lock = __SPIN_LOCK_UNLOCKED(name.lock), \ .head = NULL } #define BLOCKING_NOTIFIER_INIT(name) { \ .rwsem = __RWSEM_INITIALIZER((name).rwsem), \ -- Gitblit v1.6.2