Skip to content

Commit dd386e0

Browse files
Henrik Austadcmetcalf-tilera
authored andcommitted
tile: change lock initalization in hardwall
hardwall used __SPIN_LOCK_INITIALIZER directly instead of the preferred __SPIN_LOCK_UNLOCKED. This also has the benefit that it will compile when applying the preempt-rt patch series. Signed-off-by: Henrik Austad <[email protected]> Signed-off-by: Chris Metcalf <[email protected]>
1 parent b924a69 commit dd386e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/tile/kernel/hardwall.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static struct hardwall_type hardwall_types[] = {
6666
0,
6767
"udn",
6868
LIST_HEAD_INIT(hardwall_types[HARDWALL_UDN].list),
69-
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_UDN].lock),
69+
__SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_UDN].lock),
7070
NULL
7171
},
7272
#ifndef __tilepro__
@@ -77,7 +77,7 @@ static struct hardwall_type hardwall_types[] = {
7777
1, /* disabled pending hypervisor support */
7878
"idn",
7979
LIST_HEAD_INIT(hardwall_types[HARDWALL_IDN].list),
80-
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_IDN].lock),
80+
__SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_IDN].lock),
8181
NULL
8282
},
8383
{ /* access to user-space IPI */
@@ -87,7 +87,7 @@ static struct hardwall_type hardwall_types[] = {
8787
0,
8888
"ipi",
8989
LIST_HEAD_INIT(hardwall_types[HARDWALL_IPI].list),
90-
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_IPI].lock),
90+
__SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_IPI].lock),
9191
NULL
9292
},
9393
#endif

0 commit comments

Comments
 (0)