Commit 00c0c646 authored by Ursula Braun's avatar Ursula Braun Committed by Martin Schwidefsky

[S390] qdio: make qdio statistics SMP-capable

Use atomic_t/atomic64_t to make qdio performance statistics smp safe.
Remove temporarily calculation of "total time of inbound actions".
Signed-off-by: default avatarUrsula Braun <braunu@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent d4ee453b
This diff is collapsed.
...@@ -406,21 +406,43 @@ do_clear_global_summary(void) ...@@ -406,21 +406,43 @@ do_clear_global_summary(void)
#define CHSC_FLAG_SIGA_SYNC_DONE_ON_OUTB_PCIS 0x04 #define CHSC_FLAG_SIGA_SYNC_DONE_ON_OUTB_PCIS 0x04
struct qdio_perf_stats { struct qdio_perf_stats {
unsigned long tl_runs; #ifdef CONFIG_64BIT
atomic64_t tl_runs;
unsigned long siga_outs; atomic64_t outbound_tl_runs;
unsigned long siga_ins; atomic64_t outbound_tl_runs_resched;
unsigned long siga_syncs; atomic64_t inbound_tl_runs;
unsigned long pcis; atomic64_t inbound_tl_runs_resched;
unsigned long thinints; atomic64_t inbound_thin_tl_runs;
unsigned long fast_reqs; atomic64_t inbound_thin_tl_runs_resched;
__u64 start_time_outbound; atomic64_t siga_outs;
unsigned long outbound_cnt; atomic64_t siga_ins;
unsigned long outbound_time; atomic64_t siga_syncs;
__u64 start_time_inbound; atomic64_t pcis;
unsigned long inbound_cnt; atomic64_t thinints;
unsigned long inbound_time; atomic64_t fast_reqs;
atomic64_t outbound_cnt;
atomic64_t inbound_cnt;
#else /* CONFIG_64BIT */
atomic_t tl_runs;
atomic_t outbound_tl_runs;
atomic_t outbound_tl_runs_resched;
atomic_t inbound_tl_runs;
atomic_t inbound_tl_runs_resched;
atomic_t inbound_thin_tl_runs;
atomic_t inbound_thin_tl_runs_resched;
atomic_t siga_outs;
atomic_t siga_ins;
atomic_t siga_syncs;
atomic_t pcis;
atomic_t thinints;
atomic_t fast_reqs;
atomic_t outbound_cnt;
atomic_t inbound_cnt;
#endif /* CONFIG_64BIT */
}; };
/* unlikely as the later the better */ /* unlikely as the later the better */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment