diff options
author | Shixin Liu <liushixin2@huawei.com> | 2021-03-29 12:40:18 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-04-05 12:30:57 +0300 |
commit | 1034c96c5e28b6a27d058a0e00c968695fcf3bf0 (patch) | |
tree | 4fb515f3fd478a72a5a448bfbebf8eb7481d4422 /drivers/s390/cio | |
parent | 408f2c9c15682fc21b645fdec1f726492e235c4b (diff) | |
download | linux-1034c96c5e28b6a27d058a0e00c968695fcf3bf0.tar.xz |
s390/cio: use DEFINE_SPINLOCK() for spinlock
static spinlock can be initialized automatically with DEFINE_SPINLOCK()
rather than explicitly calling spin_lock_init().
Signed-off-by: Shixin Liu <liushixin2@huawei.com>
Acked-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/css.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index 253ab4e7a415..f01ef6325039 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -651,13 +651,12 @@ static void css_sch_todo(struct work_struct *work) } static struct idset *slow_subchannel_set; -static spinlock_t slow_subchannel_lock; +static DEFINE_SPINLOCK(slow_subchannel_lock); static wait_queue_head_t css_eval_wq; static atomic_t css_eval_scheduled; static int __init slow_subchannel_init(void) { - spin_lock_init(&slow_subchannel_lock); atomic_set(&css_eval_scheduled, 0); init_waitqueue_head(&css_eval_wq); slow_subchannel_set = idset_sch_new(); |