mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 09:43:59 +08:00
MIPS: Replace deprecated spinlock initialization
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/2025/ Signed-off-by: Ralf Baechle <ralf@duck.linux-mips.net>
This commit is contained in:
parent
c44ed965be
commit
52bd080d5c
@ -148,9 +148,9 @@ struct {
|
|||||||
spinlock_t tc_list_lock;
|
spinlock_t tc_list_lock;
|
||||||
struct list_head tc_list; /* Thread contexts */
|
struct list_head tc_list; /* Thread contexts */
|
||||||
} vpecontrol = {
|
} vpecontrol = {
|
||||||
.vpe_list_lock = SPIN_LOCK_UNLOCKED,
|
.vpe_list_lock = __SPIN_LOCK_UNLOCKED(vpe_list_lock),
|
||||||
.vpe_list = LIST_HEAD_INIT(vpecontrol.vpe_list),
|
.vpe_list = LIST_HEAD_INIT(vpecontrol.vpe_list),
|
||||||
.tc_list_lock = SPIN_LOCK_UNLOCKED,
|
.tc_list_lock = __SPIN_LOCK_UNLOCKED(tc_list_lock),
|
||||||
.tc_list = LIST_HEAD_INIT(vpecontrol.tc_list)
|
.tc_list = LIST_HEAD_INIT(vpecontrol.tc_list)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user