diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-01-30 03:49:40 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-02-14 09:55:10 -0500 |
commit | 1aae0560d160ee6ebef927a35e4f405306a079df (patch) | |
tree | 70809629dccba1bf31e067dfcd3a20fe58b6d24e /drivers/s390/block | |
parent | 58fece7827a7cc40e02bc68a7db8229166984893 (diff) |
s390/time: rename tod clock access functions
Fix name clash with some common code device drivers and add "tod"
to all tod clock access function names.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r-- | drivers/s390/block/dasd.c | 18 | ||||
-rw-r--r-- | drivers/s390/block/dasd_3990_erp.c | 8 | ||||
-rw-r--r-- | drivers/s390/block/dasd_alias.c | 4 | ||||
-rw-r--r-- | drivers/s390/block/dasd_diag.c | 10 | ||||
-rw-r--r-- | drivers/s390/block/dasd_eckd.c | 30 | ||||
-rw-r--r-- | drivers/s390/block/dasd_eer.c | 2 | ||||
-rw-r--r-- | drivers/s390/block/dasd_erp.c | 4 | ||||
-rw-r--r-- | drivers/s390/block/dasd_fba.c | 2 |
8 files changed, 39 insertions, 39 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 29225e1c159c..e1d96344d733 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -1352,7 +1352,7 @@ int dasd_term_IO(struct dasd_ccw_req *cqr) | |||
1352 | switch (rc) { | 1352 | switch (rc) { |
1353 | case 0: /* termination successful */ | 1353 | case 0: /* termination successful */ |
1354 | cqr->status = DASD_CQR_CLEAR_PENDING; | 1354 | cqr->status = DASD_CQR_CLEAR_PENDING; |
1355 | cqr->stopclk = get_clock(); | 1355 | cqr->stopclk = get_tod_clock(); |
1356 | cqr->starttime = 0; | 1356 | cqr->starttime = 0; |
1357 | DBF_DEV_EVENT(DBF_DEBUG, device, | 1357 | DBF_DEV_EVENT(DBF_DEBUG, device, |
1358 | "terminate cqr %p successful", | 1358 | "terminate cqr %p successful", |
@@ -1420,7 +1420,7 @@ int dasd_start_IO(struct dasd_ccw_req *cqr) | |||
1420 | cqr->status = DASD_CQR_ERROR; | 1420 | cqr->status = DASD_CQR_ERROR; |
1421 | return -EIO; | 1421 | return -EIO; |
1422 | } | 1422 | } |
1423 | cqr->startclk = get_clock(); | 1423 | cqr->startclk = get_tod_clock(); |
1424 | cqr->starttime = jiffies; | 1424 | cqr->starttime = jiffies; |
1425 | cqr->retries--; | 1425 | cqr->retries--; |
1426 | if (!test_bit(DASD_CQR_VERIFY_PATH, &cqr->flags)) { | 1426 | if (!test_bit(DASD_CQR_VERIFY_PATH, &cqr->flags)) { |
@@ -1623,7 +1623,7 @@ void dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
1623 | return; | 1623 | return; |
1624 | } | 1624 | } |
1625 | 1625 | ||
1626 | now = get_clock(); | 1626 | now = get_tod_clock(); |
1627 | cqr = (struct dasd_ccw_req *) intparm; | 1627 | cqr = (struct dasd_ccw_req *) intparm; |
1628 | /* check for conditions that should be handled immediately */ | 1628 | /* check for conditions that should be handled immediately */ |
1629 | if (!cqr || | 1629 | if (!cqr || |
@@ -1963,7 +1963,7 @@ int dasd_flush_device_queue(struct dasd_device *device) | |||
1963 | } | 1963 | } |
1964 | break; | 1964 | break; |
1965 | case DASD_CQR_QUEUED: | 1965 | case DASD_CQR_QUEUED: |
1966 | cqr->stopclk = get_clock(); | 1966 | cqr->stopclk = get_tod_clock(); |
1967 | cqr->status = DASD_CQR_CLEARED; | 1967 | cqr->status = DASD_CQR_CLEARED; |
1968 | break; | 1968 | break; |
1969 | default: /* no need to modify the others */ | 1969 | default: /* no need to modify the others */ |
@@ -2210,7 +2210,7 @@ static int _dasd_sleep_on(struct dasd_ccw_req *maincqr, int interruptible) | |||
2210 | wait_event(generic_waitq, _wait_for_wakeup(cqr)); | 2210 | wait_event(generic_waitq, _wait_for_wakeup(cqr)); |
2211 | } | 2211 | } |
2212 | 2212 | ||
2213 | maincqr->endclk = get_clock(); | 2213 | maincqr->endclk = get_tod_clock(); |
2214 | if ((maincqr->status != DASD_CQR_DONE) && | 2214 | if ((maincqr->status != DASD_CQR_DONE) && |
2215 | (maincqr->intrc != -ERESTARTSYS)) | 2215 | (maincqr->intrc != -ERESTARTSYS)) |
2216 | dasd_log_sense(maincqr, &maincqr->irb); | 2216 | dasd_log_sense(maincqr, &maincqr->irb); |
@@ -2340,7 +2340,7 @@ int dasd_cancel_req(struct dasd_ccw_req *cqr) | |||
2340 | "Cancelling request %p failed with rc=%d\n", | 2340 | "Cancelling request %p failed with rc=%d\n", |
2341 | cqr, rc); | 2341 | cqr, rc); |
2342 | } else { | 2342 | } else { |
2343 | cqr->stopclk = get_clock(); | 2343 | cqr->stopclk = get_tod_clock(); |
2344 | } | 2344 | } |
2345 | break; | 2345 | break; |
2346 | default: /* already finished or clear pending - do nothing */ | 2346 | default: /* already finished or clear pending - do nothing */ |
@@ -2568,7 +2568,7 @@ restart: | |||
2568 | } | 2568 | } |
2569 | 2569 | ||
2570 | /* Rechain finished requests to final queue */ | 2570 | /* Rechain finished requests to final queue */ |
2571 | cqr->endclk = get_clock(); | 2571 | cqr->endclk = get_tod_clock(); |
2572 | list_move_tail(&cqr->blocklist, final_queue); | 2572 | list_move_tail(&cqr->blocklist, final_queue); |
2573 | } | 2573 | } |
2574 | } | 2574 | } |
@@ -2711,7 +2711,7 @@ restart_cb: | |||
2711 | } | 2711 | } |
2712 | /* call the callback function */ | 2712 | /* call the callback function */ |
2713 | spin_lock_irq(&block->request_queue_lock); | 2713 | spin_lock_irq(&block->request_queue_lock); |
2714 | cqr->endclk = get_clock(); | 2714 | cqr->endclk = get_tod_clock(); |
2715 | list_del_init(&cqr->blocklist); | 2715 | list_del_init(&cqr->blocklist); |
2716 | __dasd_cleanup_cqr(cqr); | 2716 | __dasd_cleanup_cqr(cqr); |
2717 | spin_unlock_irq(&block->request_queue_lock); | 2717 | spin_unlock_irq(&block->request_queue_lock); |
@@ -3504,7 +3504,7 @@ static struct dasd_ccw_req *dasd_generic_build_rdc(struct dasd_device *device, | |||
3504 | cqr->memdev = device; | 3504 | cqr->memdev = device; |
3505 | cqr->expires = 10*HZ; | 3505 | cqr->expires = 10*HZ; |
3506 | cqr->retries = 256; | 3506 | cqr->retries = 256; |
3507 | cqr->buildclk = get_clock(); | 3507 | cqr->buildclk = get_tod_clock(); |
3508 | cqr->status = DASD_CQR_FILLED; | 3508 | cqr->status = DASD_CQR_FILLED; |
3509 | return cqr; | 3509 | return cqr; |
3510 | } | 3510 | } |
diff --git a/drivers/s390/block/dasd_3990_erp.c b/drivers/s390/block/dasd_3990_erp.c index f8212d54013a..d26134713682 100644 --- a/drivers/s390/block/dasd_3990_erp.c +++ b/drivers/s390/block/dasd_3990_erp.c | |||
@@ -229,7 +229,7 @@ dasd_3990_erp_DCTL(struct dasd_ccw_req * erp, char modifier) | |||
229 | dctl_cqr->expires = 5 * 60 * HZ; | 229 | dctl_cqr->expires = 5 * 60 * HZ; |
230 | dctl_cqr->retries = 2; | 230 | dctl_cqr->retries = 2; |
231 | 231 | ||
232 | dctl_cqr->buildclk = get_clock(); | 232 | dctl_cqr->buildclk = get_tod_clock(); |
233 | 233 | ||
234 | dctl_cqr->status = DASD_CQR_FILLED; | 234 | dctl_cqr->status = DASD_CQR_FILLED; |
235 | 235 | ||
@@ -1719,7 +1719,7 @@ dasd_3990_erp_action_1B_32(struct dasd_ccw_req * default_erp, char *sense) | |||
1719 | erp->magic = default_erp->magic; | 1719 | erp->magic = default_erp->magic; |
1720 | erp->expires = default_erp->expires; | 1720 | erp->expires = default_erp->expires; |
1721 | erp->retries = 256; | 1721 | erp->retries = 256; |
1722 | erp->buildclk = get_clock(); | 1722 | erp->buildclk = get_tod_clock(); |
1723 | erp->status = DASD_CQR_FILLED; | 1723 | erp->status = DASD_CQR_FILLED; |
1724 | 1724 | ||
1725 | /* remove the default erp */ | 1725 | /* remove the default erp */ |
@@ -2322,7 +2322,7 @@ static struct dasd_ccw_req *dasd_3990_erp_add_erp(struct dasd_ccw_req *cqr) | |||
2322 | DBF_DEV_EVENT(DBF_ERR, device, "%s", | 2322 | DBF_DEV_EVENT(DBF_ERR, device, "%s", |
2323 | "Unable to allocate ERP request"); | 2323 | "Unable to allocate ERP request"); |
2324 | cqr->status = DASD_CQR_FAILED; | 2324 | cqr->status = DASD_CQR_FAILED; |
2325 | cqr->stopclk = get_clock (); | 2325 | cqr->stopclk = get_tod_clock(); |
2326 | } else { | 2326 | } else { |
2327 | DBF_DEV_EVENT(DBF_ERR, device, | 2327 | DBF_DEV_EVENT(DBF_ERR, device, |
2328 | "Unable to allocate ERP request " | 2328 | "Unable to allocate ERP request " |
@@ -2364,7 +2364,7 @@ static struct dasd_ccw_req *dasd_3990_erp_add_erp(struct dasd_ccw_req *cqr) | |||
2364 | erp->magic = cqr->magic; | 2364 | erp->magic = cqr->magic; |
2365 | erp->expires = cqr->expires; | 2365 | erp->expires = cqr->expires; |
2366 | erp->retries = 256; | 2366 | erp->retries = 256; |
2367 | erp->buildclk = get_clock(); | 2367 | erp->buildclk = get_tod_clock(); |
2368 | erp->status = DASD_CQR_FILLED; | 2368 | erp->status = DASD_CQR_FILLED; |
2369 | 2369 | ||
2370 | return erp; | 2370 | return erp; |
diff --git a/drivers/s390/block/dasd_alias.c b/drivers/s390/block/dasd_alias.c index 6b556995bb33..a2597e683e79 100644 --- a/drivers/s390/block/dasd_alias.c +++ b/drivers/s390/block/dasd_alias.c | |||
@@ -448,7 +448,7 @@ static int read_unit_address_configuration(struct dasd_device *device, | |||
448 | ccw->count = sizeof(*(lcu->uac)); | 448 | ccw->count = sizeof(*(lcu->uac)); |
449 | ccw->cda = (__u32)(addr_t) lcu->uac; | 449 | ccw->cda = (__u32)(addr_t) lcu->uac; |
450 | 450 | ||
451 | cqr->buildclk = get_clock(); | 451 | cqr->buildclk = get_tod_clock(); |
452 | cqr->status = DASD_CQR_FILLED; | 452 | cqr->status = DASD_CQR_FILLED; |
453 | 453 | ||
454 | /* need to unset flag here to detect race with summary unit check */ | 454 | /* need to unset flag here to detect race with summary unit check */ |
@@ -733,7 +733,7 @@ static int reset_summary_unit_check(struct alias_lcu *lcu, | |||
733 | cqr->memdev = device; | 733 | cqr->memdev = device; |
734 | cqr->block = NULL; | 734 | cqr->block = NULL; |
735 | cqr->expires = 5 * HZ; | 735 | cqr->expires = 5 * HZ; |
736 | cqr->buildclk = get_clock(); | 736 | cqr->buildclk = get_tod_clock(); |
737 | cqr->status = DASD_CQR_FILLED; | 737 | cqr->status = DASD_CQR_FILLED; |
738 | 738 | ||
739 | rc = dasd_sleep_on_immediatly(cqr); | 739 | rc = dasd_sleep_on_immediatly(cqr); |
diff --git a/drivers/s390/block/dasd_diag.c b/drivers/s390/block/dasd_diag.c index 704488d0f819..cc0603358522 100644 --- a/drivers/s390/block/dasd_diag.c +++ b/drivers/s390/block/dasd_diag.c | |||
@@ -184,14 +184,14 @@ dasd_start_diag(struct dasd_ccw_req * cqr) | |||
184 | private->iob.bio_list = dreq->bio; | 184 | private->iob.bio_list = dreq->bio; |
185 | private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; | 185 | private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; |
186 | 186 | ||
187 | cqr->startclk = get_clock(); | 187 | cqr->startclk = get_tod_clock(); |
188 | cqr->starttime = jiffies; | 188 | cqr->starttime = jiffies; |
189 | cqr->retries--; | 189 | cqr->retries--; |
190 | 190 | ||
191 | rc = dia250(&private->iob, RW_BIO); | 191 | rc = dia250(&private->iob, RW_BIO); |
192 | switch (rc) { | 192 | switch (rc) { |
193 | case 0: /* Synchronous I/O finished successfully */ | 193 | case 0: /* Synchronous I/O finished successfully */ |
194 | cqr->stopclk = get_clock(); | 194 | cqr->stopclk = get_tod_clock(); |
195 | cqr->status = DASD_CQR_SUCCESS; | 195 | cqr->status = DASD_CQR_SUCCESS; |
196 | /* Indicate to calling function that only a dasd_schedule_bh() | 196 | /* Indicate to calling function that only a dasd_schedule_bh() |
197 | and no timer is needed */ | 197 | and no timer is needed */ |
@@ -222,7 +222,7 @@ dasd_diag_term_IO(struct dasd_ccw_req * cqr) | |||
222 | mdsk_term_io(device); | 222 | mdsk_term_io(device); |
223 | mdsk_init_io(device, device->block->bp_block, 0, NULL); | 223 | mdsk_init_io(device, device->block->bp_block, 0, NULL); |
224 | cqr->status = DASD_CQR_CLEAR_PENDING; | 224 | cqr->status = DASD_CQR_CLEAR_PENDING; |
225 | cqr->stopclk = get_clock(); | 225 | cqr->stopclk = get_tod_clock(); |
226 | dasd_schedule_device_bh(device); | 226 | dasd_schedule_device_bh(device); |
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
@@ -276,7 +276,7 @@ static void dasd_ext_handler(struct ext_code ext_code, | |||
276 | return; | 276 | return; |
277 | } | 277 | } |
278 | 278 | ||
279 | cqr->stopclk = get_clock(); | 279 | cqr->stopclk = get_tod_clock(); |
280 | 280 | ||
281 | expires = 0; | 281 | expires = 0; |
282 | if ((ext_code.subcode & 0xff) == 0) { | 282 | if ((ext_code.subcode & 0xff) == 0) { |
@@ -556,7 +556,7 @@ static struct dasd_ccw_req *dasd_diag_build_cp(struct dasd_device *memdev, | |||
556 | } | 556 | } |
557 | } | 557 | } |
558 | cqr->retries = DIAG_MAX_RETRIES; | 558 | cqr->retries = DIAG_MAX_RETRIES; |
559 | cqr->buildclk = get_clock(); | 559 | cqr->buildclk = get_tod_clock(); |
560 | if (blk_noretry_request(req) || | 560 | if (blk_noretry_request(req) || |
561 | block->base->features & DASD_FEATURE_FAILFAST) | 561 | block->base->features & DASD_FEATURE_FAILFAST) |
562 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); | 562 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); |
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c index e37bc1620d14..33f26bfa62f2 100644 --- a/drivers/s390/block/dasd_eckd.c +++ b/drivers/s390/block/dasd_eckd.c | |||
@@ -862,7 +862,7 @@ static void dasd_eckd_fill_rcd_cqr(struct dasd_device *device, | |||
862 | cqr->expires = 10*HZ; | 862 | cqr->expires = 10*HZ; |
863 | cqr->lpm = lpm; | 863 | cqr->lpm = lpm; |
864 | cqr->retries = 256; | 864 | cqr->retries = 256; |
865 | cqr->buildclk = get_clock(); | 865 | cqr->buildclk = get_tod_clock(); |
866 | cqr->status = DASD_CQR_FILLED; | 866 | cqr->status = DASD_CQR_FILLED; |
867 | set_bit(DASD_CQR_VERIFY_PATH, &cqr->flags); | 867 | set_bit(DASD_CQR_VERIFY_PATH, &cqr->flags); |
868 | } | 868 | } |
@@ -1449,7 +1449,7 @@ static int dasd_eckd_read_features(struct dasd_device *device) | |||
1449 | ccw->count = sizeof(struct dasd_rssd_features); | 1449 | ccw->count = sizeof(struct dasd_rssd_features); |
1450 | ccw->cda = (__u32)(addr_t) features; | 1450 | ccw->cda = (__u32)(addr_t) features; |
1451 | 1451 | ||
1452 | cqr->buildclk = get_clock(); | 1452 | cqr->buildclk = get_tod_clock(); |
1453 | cqr->status = DASD_CQR_FILLED; | 1453 | cqr->status = DASD_CQR_FILLED; |
1454 | rc = dasd_sleep_on(cqr); | 1454 | rc = dasd_sleep_on(cqr); |
1455 | if (rc == 0) { | 1455 | if (rc == 0) { |
@@ -1501,7 +1501,7 @@ static struct dasd_ccw_req *dasd_eckd_build_psf_ssc(struct dasd_device *device, | |||
1501 | cqr->block = NULL; | 1501 | cqr->block = NULL; |
1502 | cqr->retries = 256; | 1502 | cqr->retries = 256; |
1503 | cqr->expires = 10*HZ; | 1503 | cqr->expires = 10*HZ; |
1504 | cqr->buildclk = get_clock(); | 1504 | cqr->buildclk = get_tod_clock(); |
1505 | cqr->status = DASD_CQR_FILLED; | 1505 | cqr->status = DASD_CQR_FILLED; |
1506 | return cqr; | 1506 | return cqr; |
1507 | } | 1507 | } |
@@ -1841,7 +1841,7 @@ dasd_eckd_analysis_ccw(struct dasd_device *device) | |||
1841 | cqr->startdev = device; | 1841 | cqr->startdev = device; |
1842 | cqr->memdev = device; | 1842 | cqr->memdev = device; |
1843 | cqr->retries = 255; | 1843 | cqr->retries = 255; |
1844 | cqr->buildclk = get_clock(); | 1844 | cqr->buildclk = get_tod_clock(); |
1845 | cqr->status = DASD_CQR_FILLED; | 1845 | cqr->status = DASD_CQR_FILLED; |
1846 | return cqr; | 1846 | return cqr; |
1847 | } | 1847 | } |
@@ -2241,7 +2241,7 @@ dasd_eckd_format_device(struct dasd_device * device, | |||
2241 | fcp->startdev = device; | 2241 | fcp->startdev = device; |
2242 | fcp->memdev = device; | 2242 | fcp->memdev = device; |
2243 | fcp->retries = 256; | 2243 | fcp->retries = 256; |
2244 | fcp->buildclk = get_clock(); | 2244 | fcp->buildclk = get_tod_clock(); |
2245 | fcp->status = DASD_CQR_FILLED; | 2245 | fcp->status = DASD_CQR_FILLED; |
2246 | return fcp; | 2246 | return fcp; |
2247 | } | 2247 | } |
@@ -2530,7 +2530,7 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_single( | |||
2530 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ | 2530 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ |
2531 | cqr->lpm = startdev->path_data.ppm; | 2531 | cqr->lpm = startdev->path_data.ppm; |
2532 | cqr->retries = 256; | 2532 | cqr->retries = 256; |
2533 | cqr->buildclk = get_clock(); | 2533 | cqr->buildclk = get_tod_clock(); |
2534 | cqr->status = DASD_CQR_FILLED; | 2534 | cqr->status = DASD_CQR_FILLED; |
2535 | return cqr; | 2535 | return cqr; |
2536 | } | 2536 | } |
@@ -2705,7 +2705,7 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_cmd_track( | |||
2705 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ | 2705 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ |
2706 | cqr->lpm = startdev->path_data.ppm; | 2706 | cqr->lpm = startdev->path_data.ppm; |
2707 | cqr->retries = 256; | 2707 | cqr->retries = 256; |
2708 | cqr->buildclk = get_clock(); | 2708 | cqr->buildclk = get_tod_clock(); |
2709 | cqr->status = DASD_CQR_FILLED; | 2709 | cqr->status = DASD_CQR_FILLED; |
2710 | return cqr; | 2710 | return cqr; |
2711 | } | 2711 | } |
@@ -2998,7 +2998,7 @@ static struct dasd_ccw_req *dasd_eckd_build_cp_tpm_track( | |||
2998 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ | 2998 | cqr->expires = startdev->default_expires * HZ; /* default 5 minutes */ |
2999 | cqr->lpm = startdev->path_data.ppm; | 2999 | cqr->lpm = startdev->path_data.ppm; |
3000 | cqr->retries = 256; | 3000 | cqr->retries = 256; |
3001 | cqr->buildclk = get_clock(); | 3001 | cqr->buildclk = get_tod_clock(); |
3002 | cqr->status = DASD_CQR_FILLED; | 3002 | cqr->status = DASD_CQR_FILLED; |
3003 | return cqr; | 3003 | return cqr; |
3004 | out_error: | 3004 | out_error: |
@@ -3201,7 +3201,7 @@ static struct dasd_ccw_req *dasd_raw_build_cp(struct dasd_device *startdev, | |||
3201 | cqr->expires = startdev->default_expires * HZ; | 3201 | cqr->expires = startdev->default_expires * HZ; |
3202 | cqr->lpm = startdev->path_data.ppm; | 3202 | cqr->lpm = startdev->path_data.ppm; |
3203 | cqr->retries = 256; | 3203 | cqr->retries = 256; |
3204 | cqr->buildclk = get_clock(); | 3204 | cqr->buildclk = get_tod_clock(); |
3205 | cqr->status = DASD_CQR_FILLED; | 3205 | cqr->status = DASD_CQR_FILLED; |
3206 | 3206 | ||
3207 | if (IS_ERR(cqr) && PTR_ERR(cqr) != -EAGAIN) | 3207 | if (IS_ERR(cqr) && PTR_ERR(cqr) != -EAGAIN) |
@@ -3402,7 +3402,7 @@ dasd_eckd_release(struct dasd_device *device) | |||
3402 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); | 3402 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); |
3403 | cqr->retries = 2; /* set retry counter to enable basic ERP */ | 3403 | cqr->retries = 2; /* set retry counter to enable basic ERP */ |
3404 | cqr->expires = 2 * HZ; | 3404 | cqr->expires = 2 * HZ; |
3405 | cqr->buildclk = get_clock(); | 3405 | cqr->buildclk = get_tod_clock(); |
3406 | cqr->status = DASD_CQR_FILLED; | 3406 | cqr->status = DASD_CQR_FILLED; |
3407 | 3407 | ||
3408 | rc = dasd_sleep_on_immediatly(cqr); | 3408 | rc = dasd_sleep_on_immediatly(cqr); |
@@ -3457,7 +3457,7 @@ dasd_eckd_reserve(struct dasd_device *device) | |||
3457 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); | 3457 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); |
3458 | cqr->retries = 2; /* set retry counter to enable basic ERP */ | 3458 | cqr->retries = 2; /* set retry counter to enable basic ERP */ |
3459 | cqr->expires = 2 * HZ; | 3459 | cqr->expires = 2 * HZ; |
3460 | cqr->buildclk = get_clock(); | 3460 | cqr->buildclk = get_tod_clock(); |
3461 | cqr->status = DASD_CQR_FILLED; | 3461 | cqr->status = DASD_CQR_FILLED; |
3462 | 3462 | ||
3463 | rc = dasd_sleep_on_immediatly(cqr); | 3463 | rc = dasd_sleep_on_immediatly(cqr); |
@@ -3511,7 +3511,7 @@ dasd_eckd_steal_lock(struct dasd_device *device) | |||
3511 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); | 3511 | set_bit(DASD_CQR_FLAGS_FAILFAST, &cqr->flags); |
3512 | cqr->retries = 2; /* set retry counter to enable basic ERP */ | 3512 | cqr->retries = 2; /* set retry counter to enable basic ERP */ |
3513 | cqr->expires = 2 * HZ; | 3513 | cqr->expires = 2 * HZ; |
3514 | cqr->buildclk = get_clock(); | 3514 | cqr->buildclk = get_tod_clock(); |
3515 | cqr->status = DASD_CQR_FILLED; | 3515 | cqr->status = DASD_CQR_FILLED; |
3516 | 3516 | ||
3517 | rc = dasd_sleep_on_immediatly(cqr); | 3517 | rc = dasd_sleep_on_immediatly(cqr); |
@@ -3572,7 +3572,7 @@ static int dasd_eckd_snid(struct dasd_device *device, | |||
3572 | set_bit(DASD_CQR_ALLOW_SLOCK, &cqr->flags); | 3572 | set_bit(DASD_CQR_ALLOW_SLOCK, &cqr->flags); |
3573 | cqr->retries = 5; | 3573 | cqr->retries = 5; |
3574 | cqr->expires = 10 * HZ; | 3574 | cqr->expires = 10 * HZ; |
3575 | cqr->buildclk = get_clock(); | 3575 | cqr->buildclk = get_tod_clock(); |
3576 | cqr->status = DASD_CQR_FILLED; | 3576 | cqr->status = DASD_CQR_FILLED; |
3577 | cqr->lpm = usrparm.path_mask; | 3577 | cqr->lpm = usrparm.path_mask; |
3578 | 3578 | ||
@@ -3642,7 +3642,7 @@ dasd_eckd_performance(struct dasd_device *device, void __user *argp) | |||
3642 | ccw->count = sizeof(struct dasd_rssd_perf_stats_t); | 3642 | ccw->count = sizeof(struct dasd_rssd_perf_stats_t); |
3643 | ccw->cda = (__u32)(addr_t) stats; | 3643 | ccw->cda = (__u32)(addr_t) stats; |
3644 | 3644 | ||
3645 | cqr->buildclk = get_clock(); | 3645 | cqr->buildclk = get_tod_clock(); |
3646 | cqr->status = DASD_CQR_FILLED; | 3646 | cqr->status = DASD_CQR_FILLED; |
3647 | rc = dasd_sleep_on(cqr); | 3647 | rc = dasd_sleep_on(cqr); |
3648 | if (rc == 0) { | 3648 | if (rc == 0) { |
@@ -3768,7 +3768,7 @@ static int dasd_symm_io(struct dasd_device *device, void __user *argp) | |||
3768 | cqr->memdev = device; | 3768 | cqr->memdev = device; |
3769 | cqr->retries = 3; | 3769 | cqr->retries = 3; |
3770 | cqr->expires = 10 * HZ; | 3770 | cqr->expires = 10 * HZ; |
3771 | cqr->buildclk = get_clock(); | 3771 | cqr->buildclk = get_tod_clock(); |
3772 | cqr->status = DASD_CQR_FILLED; | 3772 | cqr->status = DASD_CQR_FILLED; |
3773 | 3773 | ||
3774 | /* Build the ccws */ | 3774 | /* Build the ccws */ |
diff --git a/drivers/s390/block/dasd_eer.c b/drivers/s390/block/dasd_eer.c index ff901b5509c1..21ef63cf0960 100644 --- a/drivers/s390/block/dasd_eer.c +++ b/drivers/s390/block/dasd_eer.c | |||
@@ -481,7 +481,7 @@ int dasd_eer_enable(struct dasd_device *device) | |||
481 | ccw->flags = 0; | 481 | ccw->flags = 0; |
482 | ccw->cda = (__u32)(addr_t) cqr->data; | 482 | ccw->cda = (__u32)(addr_t) cqr->data; |
483 | 483 | ||
484 | cqr->buildclk = get_clock(); | 484 | cqr->buildclk = get_tod_clock(); |
485 | cqr->status = DASD_CQR_FILLED; | 485 | cqr->status = DASD_CQR_FILLED; |
486 | cqr->callback = dasd_eer_snss_cb; | 486 | cqr->callback = dasd_eer_snss_cb; |
487 | 487 | ||
diff --git a/drivers/s390/block/dasd_erp.c b/drivers/s390/block/dasd_erp.c index d01ef82f8757..3250cb471f78 100644 --- a/drivers/s390/block/dasd_erp.c +++ b/drivers/s390/block/dasd_erp.c | |||
@@ -102,7 +102,7 @@ dasd_default_erp_action(struct dasd_ccw_req *cqr) | |||
102 | pr_err("%s: default ERP has run out of retries and failed\n", | 102 | pr_err("%s: default ERP has run out of retries and failed\n", |
103 | dev_name(&device->cdev->dev)); | 103 | dev_name(&device->cdev->dev)); |
104 | cqr->status = DASD_CQR_FAILED; | 104 | cqr->status = DASD_CQR_FAILED; |
105 | cqr->stopclk = get_clock(); | 105 | cqr->stopclk = get_tod_clock(); |
106 | } | 106 | } |
107 | return cqr; | 107 | return cqr; |
108 | } /* end dasd_default_erp_action */ | 108 | } /* end dasd_default_erp_action */ |
@@ -146,7 +146,7 @@ struct dasd_ccw_req *dasd_default_erp_postaction(struct dasd_ccw_req *cqr) | |||
146 | cqr->status = DASD_CQR_DONE; | 146 | cqr->status = DASD_CQR_DONE; |
147 | else { | 147 | else { |
148 | cqr->status = DASD_CQR_FAILED; | 148 | cqr->status = DASD_CQR_FAILED; |
149 | cqr->stopclk = get_clock(); | 149 | cqr->stopclk = get_tod_clock(); |
150 | } | 150 | } |
151 | 151 | ||
152 | return cqr; | 152 | return cqr; |
diff --git a/drivers/s390/block/dasd_fba.c b/drivers/s390/block/dasd_fba.c index 414698584344..4dd0e2f6047e 100644 --- a/drivers/s390/block/dasd_fba.c +++ b/drivers/s390/block/dasd_fba.c | |||
@@ -370,7 +370,7 @@ static struct dasd_ccw_req *dasd_fba_build_cp(struct dasd_device * memdev, | |||
370 | cqr->block = block; | 370 | cqr->block = block; |
371 | cqr->expires = memdev->default_expires * HZ; /* default 5 minutes */ | 371 | cqr->expires = memdev->default_expires * HZ; /* default 5 minutes */ |
372 | cqr->retries = 32; | 372 | cqr->retries = 32; |
373 | cqr->buildclk = get_clock(); | 373 | cqr->buildclk = get_tod_clock(); |
374 | cqr->status = DASD_CQR_FILLED; | 374 | cqr->status = DASD_CQR_FILLED; |
375 | return cqr; | 375 | return cqr; |
376 | } | 376 | } |