diff options
author | Jan Glauber <jang@linux.vnet.ibm.com> | 2009-06-12 04:26:29 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-12 04:27:32 -0400 |
commit | a7c65a559ac371a08e67600ae585052441d71392 (patch) | |
tree | fe67bd0523c3219b235b156f290d421bad99ebde /drivers/s390 | |
parent | 4c57542320e73b9ff46b04092273dbcc184a4fb6 (diff) |
[S390] qdio: inline qdio_perf_stat_inc
Move qdio_perf_stat_inc to the header file so it can be inlined.
Remove unused qdio_perf_stat_dec.
Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/qdio_perf.c | 12 | ||||
-rw-r--r-- | drivers/s390/cio/qdio_perf.h | 10 |
2 files changed, 6 insertions, 16 deletions
diff --git a/drivers/s390/cio/qdio_perf.c b/drivers/s390/cio/qdio_perf.c index 136d0f0b1e93..eff943923c6f 100644 --- a/drivers/s390/cio/qdio_perf.c +++ b/drivers/s390/cio/qdio_perf.c | |||
@@ -25,18 +25,6 @@ struct qdio_perf_stats perf_stats; | |||
25 | static struct proc_dir_entry *qdio_perf_pde; | 25 | static struct proc_dir_entry *qdio_perf_pde; |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | inline void qdio_perf_stat_inc(atomic_long_t *count) | ||
29 | { | ||
30 | if (qdio_performance_stats) | ||
31 | atomic_long_inc(count); | ||
32 | } | ||
33 | |||
34 | inline void qdio_perf_stat_dec(atomic_long_t *count) | ||
35 | { | ||
36 | if (qdio_performance_stats) | ||
37 | atomic_long_dec(count); | ||
38 | } | ||
39 | |||
40 | /* | 28 | /* |
41 | * procfs functions | 29 | * procfs functions |
42 | */ | 30 | */ |
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 |