diff options
Diffstat (limited to 'drivers/s390/cio/qdio_perf.h')
-rw-r--r-- | drivers/s390/cio/qdio_perf.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/s390/cio/qdio_perf.h b/drivers/s390/cio/qdio_perf.h index 7821ac4fa517..ff4504ce1e3c 100644 --- a/drivers/s390/cio/qdio_perf.h +++ b/drivers/s390/cio/qdio_perf.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #define QDIO_PERF_H | 9 | #define QDIO_PERF_H |
10 | 10 | ||
11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
12 | #include <linux/device.h> | ||
13 | #include <asm/atomic.h> | 12 | #include <asm/atomic.h> |
14 | 13 | ||
15 | struct qdio_perf_stats { | 14 | struct qdio_perf_stats { |
@@ -50,10 +49,13 @@ struct qdio_perf_stats { | |||
50 | extern struct qdio_perf_stats perf_stats; | 49 | extern struct qdio_perf_stats perf_stats; |
51 | extern int qdio_performance_stats; | 50 | extern int qdio_performance_stats; |
52 | 51 | ||
52 | static inline void qdio_perf_stat_inc(atomic_long_t *count) | ||
53 | { | ||
54 | if (qdio_performance_stats) | ||
55 | atomic_long_inc(count); | ||
56 | } | ||
57 | |||
53 | int qdio_setup_perf_stats(void); | 58 | int qdio_setup_perf_stats(void); |
54 | void qdio_remove_perf_stats(void); | 59 | void qdio_remove_perf_stats(void); |
55 | 60 | ||
56 | extern void qdio_perf_stat_inc(atomic_long_t *count); | ||
57 | extern void qdio_perf_stat_dec(atomic_long_t *count); | ||
58 | |||
59 | #endif | 61 | #endif |