]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.arch/s390-17-perf-03-qdio_inline_qdio_perf_stat_inc.patch
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-17-perf-03-qdio_inline_qdio_perf_stat_inc.patch
1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: [PATCH] qdio: inline qdio_perf_stat_inc
3 References: bnc#532063,LTC#55526
4
5 From: Jan Glauber <jang@linux.vnet.ibm.com>
6
7 Move qdio_perf_stat_inc to the header file so it can be inlined.
8 Remove unused qdio_perf_stat_dec.
9
10 Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com>
11
12 Acked-by: John Jolly <jjolly@suse.de>
13
14 ---
15 drivers/s390/cio/qdio_perf.c | 12 ------------
16 drivers/s390/cio/qdio_perf.h | 10 ++++++----
17 2 files changed, 6 insertions(+), 16 deletions(-)
18
19 Index: linux-sles11/drivers/s390/cio/qdio_perf.c
20 ===================================================================
21 --- linux-sles11.orig/drivers/s390/cio/qdio_perf.c
22 +++ linux-sles11/drivers/s390/cio/qdio_perf.c
23 @@ -25,18 +25,6 @@ struct qdio_perf_stats perf_stats;
24 static struct proc_dir_entry *qdio_perf_pde;
25 #endif
26
27 -inline void qdio_perf_stat_inc(atomic_long_t *count)
28 -{
29 - if (qdio_performance_stats)
30 - atomic_long_inc(count);
31 -}
32 -
33 -inline void qdio_perf_stat_dec(atomic_long_t *count)
34 -{
35 - if (qdio_performance_stats)
36 - atomic_long_dec(count);
37 -}
38 -
39 /*
40 * procfs functions
41 */
42 Index: linux-sles11/drivers/s390/cio/qdio_perf.h
43 ===================================================================
44 --- linux-sles11.orig/drivers/s390/cio/qdio_perf.h
45 +++ linux-sles11/drivers/s390/cio/qdio_perf.h
46 @@ -9,7 +9,6 @@
47 #define QDIO_PERF_H
48
49 #include <linux/types.h>
50 -#include <linux/device.h>
51 #include <asm/atomic.h>
52
53 struct qdio_perf_stats {
54 @@ -46,10 +45,13 @@ struct qdio_perf_stats {
55 extern struct qdio_perf_stats perf_stats;
56 extern int qdio_performance_stats;
57
58 +static inline void qdio_perf_stat_inc(atomic_long_t *count)
59 +{
60 + if (qdio_performance_stats)
61 + atomic_long_inc(count);
62 +}
63 +
64 int qdio_setup_perf_stats(void);
65 void qdio_remove_perf_stats(void);
66
67 -extern void qdio_perf_stat_inc(atomic_long_t *count);
68 -extern void qdio_perf_stat_dec(atomic_long_t *count);
69 -
70 #endif