aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/init_task.h2
-rw-r--r--include/linux/rtmutex.h8
-rw-r--r--include/linux/sched.h2
3 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index 7fc01b13be43..455a29d02a0f 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -159,7 +159,7 @@ extern struct cred init_cred;
159 .journal_info = NULL, \ 159 .journal_info = NULL, \
160 .cpu_timers = INIT_CPU_TIMERS(tsk.cpu_timers), \ 160 .cpu_timers = INIT_CPU_TIMERS(tsk.cpu_timers), \
161 .fs_excl = ATOMIC_INIT(0), \ 161 .fs_excl = ATOMIC_INIT(0), \
162 .pi_lock = __SPIN_LOCK_UNLOCKED(tsk.pi_lock), \ 162 .pi_lock = __ATOMIC_SPIN_LOCK_UNLOCKED(tsk.pi_lock), \
163 .timer_slack_ns = 50000, /* 50 usec default slack */ \ 163 .timer_slack_ns = 50000, /* 50 usec default slack */ \
164 .pids = { \ 164 .pids = { \
165 [PIDTYPE_PID] = INIT_PID_LINK(PIDTYPE_PID), \ 165 [PIDTYPE_PID] = INIT_PID_LINK(PIDTYPE_PID), \
diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h
index f19b00b7d530..dd9612d436e2 100644
--- a/include/linux/rtmutex.h
+++ b/include/linux/rtmutex.h
@@ -24,7 +24,7 @@
24 * @owner: the mutex owner 24 * @owner: the mutex owner
25 */ 25 */
26struct rt_mutex { 26struct rt_mutex {
27 spinlock_t wait_lock; 27 atomic_spinlock_t wait_lock;
28 struct plist_head wait_list; 28 struct plist_head wait_list;
29 struct task_struct *owner; 29 struct task_struct *owner;
30#ifdef CONFIG_DEBUG_RT_MUTEXES 30#ifdef CONFIG_DEBUG_RT_MUTEXES
@@ -63,8 +63,8 @@ struct hrtimer_sleeper;
63#endif 63#endif
64 64
65#define __RT_MUTEX_INITIALIZER(mutexname) \ 65#define __RT_MUTEX_INITIALIZER(mutexname) \
66 { .wait_lock = __SPIN_LOCK_UNLOCKED(mutexname.wait_lock) \ 66 { .wait_lock = __ATOMIC_SPIN_LOCK_UNLOCKED(mutexname.wait_lock) \
67 , .wait_list = PLIST_HEAD_INIT(mutexname.wait_list, mutexname.wait_lock) \ 67 , .wait_list = PLIST_HEAD_INIT_ATOMIC(mutexname.wait_list, mutexname.wait_lock) \
68 , .owner = NULL \ 68 , .owner = NULL \
69 __DEBUG_RT_MUTEX_INITIALIZER(mutexname)} 69 __DEBUG_RT_MUTEX_INITIALIZER(mutexname)}
70 70
@@ -98,7 +98,7 @@ extern void rt_mutex_unlock(struct rt_mutex *lock);
98 98
99#ifdef CONFIG_RT_MUTEXES 99#ifdef CONFIG_RT_MUTEXES
100# define INIT_RT_MUTEXES(tsk) \ 100# define INIT_RT_MUTEXES(tsk) \
101 .pi_waiters = PLIST_HEAD_INIT(tsk.pi_waiters, tsk.pi_lock), \ 101 .pi_waiters = PLIST_HEAD_INIT_ATOMIC(tsk.pi_waiters, tsk.pi_lock), \
102 INIT_RT_MUTEX_DEBUG(tsk) 102 INIT_RT_MUTEX_DEBUG(tsk)
103#else 103#else
104# define INIT_RT_MUTEXES(tsk) 104# define INIT_RT_MUTEXES(tsk)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 3ab08e4bb6b8..792afc3be264 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1347,7 +1347,7 @@ struct task_struct {
1347#endif 1347#endif
1348 1348
1349 /* Protection of the PI data structures: */ 1349 /* Protection of the PI data structures: */
1350 spinlock_t pi_lock; 1350 atomic_spinlock_t pi_lock;
1351 1351
1352#ifdef CONFIG_RT_MUTEXES 1352#ifdef CONFIG_RT_MUTEXES
1353 /* PI waiters blocked on a rt_mutex held by this task */ 1353 /* PI waiters blocked on a rt_mutex held by this task */