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/cio | |
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/cio')
-rw-r--r-- | drivers/s390/cio/cio.c | 4 | ||||
-rw-r--r-- | drivers/s390/cio/cmf.c | 6 | ||||
-rw-r--r-- | drivers/s390/cio/css.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/device_fsm.c | 2 | ||||
-rw-r--r-- | drivers/s390/cio/qdio_main.c | 12 |
5 files changed, 13 insertions, 13 deletions
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c index c8faf6230b0f..986ef6a92a41 100644 --- a/drivers/s390/cio/cio.c +++ b/drivers/s390/cio/cio.c | |||
@@ -962,9 +962,9 @@ static void css_reset(void) | |||
962 | atomic_inc(&chpid_reset_count); | 962 | atomic_inc(&chpid_reset_count); |
963 | } | 963 | } |
964 | /* Wait for machine check for all channel paths. */ | 964 | /* Wait for machine check for all channel paths. */ |
965 | timeout = get_clock() + (RCHP_TIMEOUT << 12); | 965 | timeout = get_tod_clock() + (RCHP_TIMEOUT << 12); |
966 | while (atomic_read(&chpid_reset_count) != 0) { | 966 | while (atomic_read(&chpid_reset_count) != 0) { |
967 | if (get_clock() > timeout) | 967 | if (get_tod_clock() > timeout) |
968 | break; | 968 | break; |
969 | cpu_relax(); | 969 | cpu_relax(); |
970 | } | 970 | } |
diff --git a/drivers/s390/cio/cmf.c b/drivers/s390/cio/cmf.c index c9fc61c0a866..4495e0627a40 100644 --- a/drivers/s390/cio/cmf.c +++ b/drivers/s390/cio/cmf.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/module.h> | 33 | #include <linux/module.h> |
34 | #include <linux/moduleparam.h> | 34 | #include <linux/moduleparam.h> |
35 | #include <linux/slab.h> | 35 | #include <linux/slab.h> |
36 | #include <linux/timex.h> /* get_clock() */ | 36 | #include <linux/timex.h> /* get_tod_clock() */ |
37 | 37 | ||
38 | #include <asm/ccwdev.h> | 38 | #include <asm/ccwdev.h> |
39 | #include <asm/cio.h> | 39 | #include <asm/cio.h> |
@@ -326,7 +326,7 @@ static int cmf_copy_block(struct ccw_device *cdev) | |||
326 | memcpy(cmb_data->last_block, hw_block, cmb_data->size); | 326 | memcpy(cmb_data->last_block, hw_block, cmb_data->size); |
327 | memcpy(reference_buf, hw_block, cmb_data->size); | 327 | memcpy(reference_buf, hw_block, cmb_data->size); |
328 | } while (memcmp(cmb_data->last_block, reference_buf, cmb_data->size)); | 328 | } while (memcmp(cmb_data->last_block, reference_buf, cmb_data->size)); |
329 | cmb_data->last_update = get_clock(); | 329 | cmb_data->last_update = get_tod_clock(); |
330 | kfree(reference_buf); | 330 | kfree(reference_buf); |
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |
@@ -428,7 +428,7 @@ static void cmf_generic_reset(struct ccw_device *cdev) | |||
428 | memset(cmbops->align(cmb_data->hw_block), 0, cmb_data->size); | 428 | memset(cmbops->align(cmb_data->hw_block), 0, cmb_data->size); |
429 | cmb_data->last_update = 0; | 429 | cmb_data->last_update = 0; |
430 | } | 430 | } |
431 | cdev->private->cmb_start_time = get_clock(); | 431 | cdev->private->cmb_start_time = get_tod_clock(); |
432 | spin_unlock_irq(cdev->ccwlock); | 432 | spin_unlock_irq(cdev->ccwlock); |
433 | } | 433 | } |
434 | 434 | ||
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index fd00afd8b850..a239237d43f3 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c | |||
@@ -780,7 +780,7 @@ static int __init setup_css(int nr) | |||
780 | css->cssid = nr; | 780 | css->cssid = nr; |
781 | dev_set_name(&css->device, "css%x", nr); | 781 | dev_set_name(&css->device, "css%x", nr); |
782 | css->device.release = channel_subsystem_release; | 782 | css->device.release = channel_subsystem_release; |
783 | tod_high = (u32) (get_clock() >> 32); | 783 | tod_high = (u32) (get_tod_clock() >> 32); |
784 | css_generate_pgid(css, tod_high); | 784 | css_generate_pgid(css, tod_high); |
785 | return 0; | 785 | return 0; |
786 | } | 786 | } |
diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index 1bb1d00095af..c7638c543250 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c | |||
@@ -47,7 +47,7 @@ static void ccw_timeout_log(struct ccw_device *cdev) | |||
47 | cc = stsch_err(sch->schid, &schib); | 47 | cc = stsch_err(sch->schid, &schib); |
48 | 48 | ||
49 | printk(KERN_WARNING "cio: ccw device timeout occurred at %llx, " | 49 | printk(KERN_WARNING "cio: ccw device timeout occurred at %llx, " |
50 | "device information:\n", get_clock()); | 50 | "device information:\n", get_tod_clock()); |
51 | printk(KERN_WARNING "cio: orb:\n"); | 51 | printk(KERN_WARNING "cio: orb:\n"); |
52 | print_hex_dump(KERN_WARNING, "cio: ", DUMP_PREFIX_NONE, 16, 1, | 52 | print_hex_dump(KERN_WARNING, "cio: ", DUMP_PREFIX_NONE, 16, 1, |
53 | orb, sizeof(*orb), 0); | 53 | orb, sizeof(*orb), 0); |
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c index 1671d3461f29..abc550e5dd35 100644 --- a/drivers/s390/cio/qdio_main.c +++ b/drivers/s390/cio/qdio_main.c | |||
@@ -338,10 +338,10 @@ again: | |||
338 | retries++; | 338 | retries++; |
339 | 339 | ||
340 | if (!start_time) { | 340 | if (!start_time) { |
341 | start_time = get_clock(); | 341 | start_time = get_tod_clock(); |
342 | goto again; | 342 | goto again; |
343 | } | 343 | } |
344 | if ((get_clock() - start_time) < QDIO_BUSY_BIT_PATIENCE) | 344 | if ((get_tod_clock() - start_time) < QDIO_BUSY_BIT_PATIENCE) |
345 | goto again; | 345 | goto again; |
346 | } | 346 | } |
347 | if (retries) { | 347 | if (retries) { |
@@ -504,7 +504,7 @@ static int get_inbound_buffer_frontier(struct qdio_q *q) | |||
504 | int count, stop; | 504 | int count, stop; |
505 | unsigned char state = 0; | 505 | unsigned char state = 0; |
506 | 506 | ||
507 | q->timestamp = get_clock(); | 507 | q->timestamp = get_tod_clock(); |
508 | 508 | ||
509 | /* | 509 | /* |
510 | * Don't check 128 buffers, as otherwise qdio_inbound_q_moved | 510 | * Don't check 128 buffers, as otherwise qdio_inbound_q_moved |
@@ -563,7 +563,7 @@ static int qdio_inbound_q_moved(struct qdio_q *q) | |||
563 | if (bufnr != q->last_move) { | 563 | if (bufnr != q->last_move) { |
564 | q->last_move = bufnr; | 564 | q->last_move = bufnr; |
565 | if (!is_thinint_irq(q->irq_ptr) && MACHINE_IS_LPAR) | 565 | if (!is_thinint_irq(q->irq_ptr) && MACHINE_IS_LPAR) |
566 | q->u.in.timestamp = get_clock(); | 566 | q->u.in.timestamp = get_tod_clock(); |
567 | return 1; | 567 | return 1; |
568 | } else | 568 | } else |
569 | return 0; | 569 | return 0; |
@@ -595,7 +595,7 @@ static inline int qdio_inbound_q_done(struct qdio_q *q) | |||
595 | * At this point we know, that inbound first_to_check | 595 | * At this point we know, that inbound first_to_check |
596 | * has (probably) not moved (see qdio_inbound_processing). | 596 | * has (probably) not moved (see qdio_inbound_processing). |
597 | */ | 597 | */ |
598 | if (get_clock() > q->u.in.timestamp + QDIO_INPUT_THRESHOLD) { | 598 | if (get_tod_clock() > q->u.in.timestamp + QDIO_INPUT_THRESHOLD) { |
599 | DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "in done:%02x", | 599 | DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "in done:%02x", |
600 | q->first_to_check); | 600 | q->first_to_check); |
601 | return 1; | 601 | return 1; |
@@ -772,7 +772,7 @@ static int get_outbound_buffer_frontier(struct qdio_q *q) | |||
772 | int count, stop; | 772 | int count, stop; |
773 | unsigned char state = 0; | 773 | unsigned char state = 0; |
774 | 774 | ||
775 | q->timestamp = get_clock(); | 775 | q->timestamp = get_tod_clock(); |
776 | 776 | ||
777 | if (need_siga_sync(q)) | 777 | if (need_siga_sync(q)) |
778 | if (((queue_type(q) != QDIO_IQDIO_QFMT) && | 778 | if (((queue_type(q) != QDIO_IQDIO_QFMT) && |