[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220329130539.568762-1-wangjianxing@loongson.cn>
Date: Tue, 29 Mar 2022 21:05:38 +0800
From: Jianxing Wang <wangjianxing@...ngson.cn>
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com
Cc: linux-kernel@...r.kernel.org,
Jianxing Wang <wangjianxing@...ngson.cn>,
Mike Galbraith <bitbucket@...ine.de>
Subject: [PATCH 1/1] sched/headers: remove double_lock function
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@...ine.de>
Cc: Peter Zijlstra <peterz@...radead.org>
Signed-off-by: Jianxing Wang <wangjianxing@...ngson.cn>
---
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
Powered by blists - more mailing lists