Commit 4e774d59 authored by Shixin Liu's avatar Shixin Liu Committed by Heiko Carstens
Browse files

s390/cio: use DECLARE_WAIT_QUEUE_HEAD() for wait_queue



wait_queue_head_t can be initialized automatically with
DECLARE_WAIT_QUEUE_HEAD() rather than explicitly calling
init_waitqueue_head().

Signed-off-by: default avatarShixin Liu <liushixin2@huawei.com>
Acked-by: default avatarVineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 1034c96c
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -652,13 +652,12 @@ static void css_sch_todo(struct work_struct *work)


static struct idset *slow_subchannel_set;
static struct idset *slow_subchannel_set;
static DEFINE_SPINLOCK(slow_subchannel_lock);
static DEFINE_SPINLOCK(slow_subchannel_lock);
static wait_queue_head_t css_eval_wq;
static DECLARE_WAIT_QUEUE_HEAD(css_eval_wq);
static atomic_t css_eval_scheduled;
static atomic_t css_eval_scheduled;


static int __init slow_subchannel_init(void)
static int __init slow_subchannel_init(void)
{
{
	atomic_set(&css_eval_scheduled, 0);
	atomic_set(&css_eval_scheduled, 0);
	init_waitqueue_head(&css_eval_wq);
	slow_subchannel_set = idset_sch_new();
	slow_subchannel_set = idset_sch_new();
	if (!slow_subchannel_set) {
	if (!slow_subchannel_set) {
		CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n");
		CIO_MSG_EVENT(0, "could not allocate slow subchannel set\n");