diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-13 06:53:21 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-04-17 08:07:30 -0400 |
commit | 188561a462d3b82451d6ba09e2e32c9ba2c9938c (patch) | |
tree | ced10861aad02cad5cac0e232c8c85964dd2dc1f /drivers/s390/char/raw3270.c | |
parent | 91c15a951091a64a5f048ff93292057e3b590b6f (diff) |
s390/cio: wait_cons_dev don't use static variable
wait_cons_dev is used to busy wait for an interrupt on the console
ccw device. Stop using the static console_subchannel and add a
parameter to this function to specify on which ccw device/subchannel
we have to do the polling.
While at it rename the function to ccw_device_wait_idle and
move it to device.c
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/char/raw3270.c')
-rw-r--r-- | drivers/s390/char/raw3270.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 4c9030a5b9f2..383d6432a1a8 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -796,7 +796,7 @@ struct raw3270 __init *raw3270_setup_console(struct ccw_device *cdev) | |||
796 | do { | 796 | do { |
797 | __raw3270_reset_device(rp); | 797 | __raw3270_reset_device(rp); |
798 | while (!raw3270_state_final(rp)) { | 798 | while (!raw3270_state_final(rp)) { |
799 | wait_cons_dev(); | 799 | ccw_device_wait_idle(rp->cdev); |
800 | barrier(); | 800 | barrier(); |
801 | } | 801 | } |
802 | } while (rp->state != RAW3270_STATE_READY); | 802 | } while (rp->state != RAW3270_STATE_READY); |
@@ -810,7 +810,7 @@ raw3270_wait_cons_dev(struct raw3270 *rp) | |||
810 | unsigned long flags; | 810 | unsigned long flags; |
811 | 811 | ||
812 | spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags); | 812 | spin_lock_irqsave(get_ccwdev_lock(rp->cdev), flags); |
813 | wait_cons_dev(); | 813 | ccw_device_wait_idle(rp->cdev); |
814 | spin_unlock_irqrestore(get_ccwdev_lock(rp->cdev), flags); | 814 | spin_unlock_irqrestore(get_ccwdev_lock(rp->cdev), flags); |
815 | } | 815 | } |
816 | 816 | ||