summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/device.h
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2013-04-13 13:06:27 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-04-17 14:07:33 +0200
commit0ad8f714a135cf993606c21fc1ed0e303ef17c0d (patch)
tree78ce400a47edecdce1921f2bb6cc536009778bb5 /drivers/s390/cio/device.h
parent4e5ebd51214a1851841f952e9e5b5072ce5f9da4 (diff)
downloadop-kernel-dev-0ad8f714a135cf993606c21fc1ed0e303ef17c0d.zip
op-kernel-dev-0ad8f714a135cf993606c21fc1ed0e303ef17c0d.tar.gz
s390/cio: fix early init counter usage
Via ccw_device_init_count we keep track of how many devices are in asynchronous device recognition/initialization. For early devices this variable was not only used prior to its initialization but used incorrectly (incremented but never decremented). Fix this by using static initialization for this variable (and friends), make them visible to device.c only, and decrement the counter after recognition of early devices is finished. 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/cio/device.h')
-rw-r--r--drivers/s390/cio/device.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.h b/drivers/s390/cio/device.h
index 7d4ecb6..8d1d298 100644
--- a/drivers/s390/cio/device.h
+++ b/drivers/s390/cio/device.h
@@ -81,8 +81,6 @@ dev_fsm_final_state(struct ccw_device *cdev)
cdev->private->state == DEV_STATE_BOXED);
}
-extern wait_queue_head_t ccw_device_init_wq;
-extern atomic_t ccw_device_init_count;
int __init io_subchannel_init(void);
void io_subchannel_recog_done(struct ccw_device *cdev);
OpenPOWER on IntegriCloud