diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 20:53:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-14 20:53:36 -0400 |
commit | 39695224bd84dc4be29abad93a0ec232a16fc519 (patch) | |
tree | 2bfa5cb50788a4c8be9f2e9f4412e47a565f4508 /arch | |
parent | a9bbd210a44102cc50b30a5f3d111dbf5f2f9cd4 (diff) | |
parent | ea038f63ac52439e7816295fa6064fe95e6c1f51 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (209 commits)
[SCSI] fix oops during scsi scanning
[SCSI] libsrp: fix memory leak in srp_ring_free()
[SCSI] libiscsi, bnx2i: make bound ep check common
[SCSI] libiscsi: add completion function for drivers that do not need pdu processing
[SCSI] scsi_dh_rdac: changes for rdac debug logging
[SCSI] scsi_dh_rdac: changes to collect the rdac debug information during the initialization
[SCSI] scsi_dh_rdac: move the init code from rdac_activate to rdac_bus_attach
[SCSI] sg: fix oops in the error path in sg_build_indirect()
[SCSI] mptsas : Bump version to 3.04.12
[SCSI] mptsas : FW event thread and scsi mid layer deadlock in SYNCHRONIZE CACHE command
[SCSI] mptsas : Send DID_NO_CONNECT for pending IOs of removed device
[SCSI] mptsas : PAE Kernel more than 4 GB kernel panic
[SCSI] mptsas : NULL pointer on big endian systems causing Expander not to tear off
[SCSI] mptsas : Sanity check for phyinfo is added
[SCSI] scsi_dh_rdac: Add support for Sun StorageTek ST2500, ST2510 and ST2530
[SCSI] pmcraid: PMC-Sierra MaxRAID driver to support 6Gb/s SAS RAID controller
[SCSI] qla2xxx: Update version number to 8.03.01-k6.
[SCSI] qla2xxx: Properly delete rports attached to a vport.
[SCSI] qla2xxx: Correct various NPIV issues.
[SCSI] qla2xxx: Correct qla2x00_eh_wait_on_command() to wait correctly.
...
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/timex.h | 8 | ||||
-rw-r--r-- | arch/s390/kernel/debug.c | 8 | ||||
-rw-r--r-- | arch/s390/kernel/time.c | 1 |
3 files changed, 10 insertions, 7 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 24aa1cda20ad..68d9fea34b4b 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -88,6 +88,14 @@ int get_sync_clock(unsigned long long *clock); | |||
88 | void init_cpu_timer(void); | 88 | void init_cpu_timer(void); |
89 | unsigned long long monotonic_clock(void); | 89 | unsigned long long monotonic_clock(void); |
90 | 90 | ||
91 | void tod_to_timeval(__u64, struct timespec *); | ||
92 | |||
93 | static inline | ||
94 | void stck_to_timespec(unsigned long long stck, struct timespec *ts) | ||
95 | { | ||
96 | tod_to_timeval(stck - TOD_UNIX_EPOCH, ts); | ||
97 | } | ||
98 | |||
91 | extern u64 sched_clock_base_cc; | 99 | extern u64 sched_clock_base_cc; |
92 | 100 | ||
93 | /** | 101 | /** |
diff --git a/arch/s390/kernel/debug.c b/arch/s390/kernel/debug.c index be8bceaf37d9..4c512561687d 100644 --- a/arch/s390/kernel/debug.c +++ b/arch/s390/kernel/debug.c | |||
@@ -63,8 +63,6 @@ typedef struct | |||
63 | } debug_sprintf_entry_t; | 63 | } debug_sprintf_entry_t; |
64 | 64 | ||
65 | 65 | ||
66 | extern void tod_to_timeval(uint64_t todval, struct timespec *xtime); | ||
67 | |||
68 | /* internal function prototyes */ | 66 | /* internal function prototyes */ |
69 | 67 | ||
70 | static int debug_init(void); | 68 | static int debug_init(void); |
@@ -1450,17 +1448,13 @@ debug_dflt_header_fn(debug_info_t * id, struct debug_view *view, | |||
1450 | int area, debug_entry_t * entry, char *out_buf) | 1448 | int area, debug_entry_t * entry, char *out_buf) |
1451 | { | 1449 | { |
1452 | struct timespec time_spec; | 1450 | struct timespec time_spec; |
1453 | unsigned long long time; | ||
1454 | char *except_str; | 1451 | char *except_str; |
1455 | unsigned long caller; | 1452 | unsigned long caller; |
1456 | int rc = 0; | 1453 | int rc = 0; |
1457 | unsigned int level; | 1454 | unsigned int level; |
1458 | 1455 | ||
1459 | level = entry->id.fields.level; | 1456 | level = entry->id.fields.level; |
1460 | time = entry->id.stck; | 1457 | stck_to_timespec(entry->id.stck, &time_spec); |
1461 | /* adjust todclock to 1970 */ | ||
1462 | time -= 0x8126d60e46000000LL - (0x3c26700LL * 1000000 * 4096); | ||
1463 | tod_to_timeval(time, &time_spec); | ||
1464 | 1458 | ||
1465 | if (entry->id.fields.exception) | 1459 | if (entry->id.fields.exception) |
1466 | except_str = "*"; | 1460 | except_str = "*"; |
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 54e327e9af04..e3dc28b8075d 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
@@ -91,6 +91,7 @@ void tod_to_timeval(__u64 todval, struct timespec *xtime) | |||
91 | todval -= (sec * 1000000) << 12; | 91 | todval -= (sec * 1000000) << 12; |
92 | xtime->tv_nsec = ((todval * 1000) >> 12); | 92 | xtime->tv_nsec = ((todval * 1000) >> 12); |
93 | } | 93 | } |
94 | EXPORT_SYMBOL(tod_to_timeval); | ||
94 | 95 | ||
95 | void clock_comparator_work(void) | 96 | void clock_comparator_work(void) |
96 | { | 97 | { |