Skip to content

Commit

Permalink
[S390] qdio_get_micros return value.
Browse files Browse the repository at this point in the history
qdio_get_micros is supposed to return microseconds. The get_clock()
return value needs to be shifted by 12 to get to microseconds.

Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Frank Pavlic authored and Martin Schwidefsky committed Sep 20, 2006
1 parent 7d5d688 commit 47addc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/cio/qdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ qdio_min(int a,int b)
static inline __u64
qdio_get_micros(void)
{
return (get_clock() >> 10); /* time>>12 is microseconds */
return (get_clock() >> 12); /* time>>12 is microseconds */
}

/*
Expand Down

0 comments on commit 47addc8

Please sign in to comment.