[PATCH 1/1] sched/headers: remove double_lock function
From: Jianxing Wang
Date: Tue Mar 29 2022 - 09:06:44 EST
commit 8c8a743c5087b ("sched/numa: Use {cpu, pid} to create task groups
for shared faults") import double_lock but
commit 60e69eed85bb ("sched/numa: Fix task_numa_free() lockdep splat")
replace it with double_lock_irq, now nobody care it, just remove it.
Cc: Mike Galbraith <bitbucket@xxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Signed-off-by: Jianxing Wang <wangjianxing@xxxxxxxxxxx>
---
kernel/sched/sched.h | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 58263f90c559..f8ca414177bd 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -2586,15 +2586,6 @@ static inline void double_unlock_balance(struct rq *this_rq, struct rq *busiest)
lock_set_subclass(&__rq_lockp(this_rq)->dep_map, 0, _RET_IP_);
}
-static inline void double_lock(spinlock_t *l1, spinlock_t *l2)
-{
- if (l1 > l2)
- swap(l1, l2);
-
- spin_lock(l1);
- spin_lock_nested(l2, SINGLE_DEPTH_NESTING);
-}
-
static inline void double_lock_irq(spinlock_t *l1, spinlock_t *l2)
{
if (l1 > l2)
--
2.31.1