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 <haustad@cisco.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
Henrik Austad 2013-09-25 16:16:40 +02:00 коммит произвёл Chris Metcalf
Родитель b924a69067
Коммит dd386e03d9
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -66,7 +66,7 @@ static struct hardwall_type hardwall_types[] = {
0, 0,
"udn", "udn",
LIST_HEAD_INIT(hardwall_types[HARDWALL_UDN].list), LIST_HEAD_INIT(hardwall_types[HARDWALL_UDN].list),
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_UDN].lock), __SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_UDN].lock),
NULL NULL
}, },
#ifndef __tilepro__ #ifndef __tilepro__
@ -77,7 +77,7 @@ static struct hardwall_type hardwall_types[] = {
1, /* disabled pending hypervisor support */ 1, /* disabled pending hypervisor support */
"idn", "idn",
LIST_HEAD_INIT(hardwall_types[HARDWALL_IDN].list), LIST_HEAD_INIT(hardwall_types[HARDWALL_IDN].list),
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_IDN].lock), __SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_IDN].lock),
NULL NULL
}, },
{ /* access to user-space IPI */ { /* access to user-space IPI */
@ -87,7 +87,7 @@ static struct hardwall_type hardwall_types[] = {
0, 0,
"ipi", "ipi",
LIST_HEAD_INIT(hardwall_types[HARDWALL_IPI].list), LIST_HEAD_INIT(hardwall_types[HARDWALL_IPI].list),
__SPIN_LOCK_INITIALIZER(hardwall_types[HARDWALL_IPI].lock), __SPIN_LOCK_UNLOCKED(hardwall_types[HARDWALL_IPI].lock),
NULL NULL
}, },
#endif #endif