Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148762
b: refs/heads/master
c: a7c65a5
h: refs/heads/master
v: v3
  • Loading branch information
Jan Glauber authored and Martin Schwidefsky committed Jun 12, 2009
1 parent 5764d91 commit 23fbc31
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c57542320e73b9ff46b04092273dbcc184a4fb6
refs/heads/master: a7c65a559ac371a08e67600ae585052441d71392
12 changes: 0 additions & 12 deletions trunk/drivers/s390/cio/qdio_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@ struct qdio_perf_stats perf_stats;
static struct proc_dir_entry *qdio_perf_pde;
#endif

inline void qdio_perf_stat_inc(atomic_long_t *count)
{
if (qdio_performance_stats)
atomic_long_inc(count);
}

inline void qdio_perf_stat_dec(atomic_long_t *count)
{
if (qdio_performance_stats)
atomic_long_dec(count);
}

/*
* procfs functions
*/
Expand Down
10 changes: 6 additions & 4 deletions trunk/drivers/s390/cio/qdio_perf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define QDIO_PERF_H

#include <linux/types.h>
#include <linux/device.h>
#include <asm/atomic.h>

struct qdio_perf_stats {
Expand Down Expand Up @@ -50,10 +49,13 @@ struct qdio_perf_stats {
extern struct qdio_perf_stats perf_stats;
extern int qdio_performance_stats;

static inline void qdio_perf_stat_inc(atomic_long_t *count)
{
if (qdio_performance_stats)
atomic_long_inc(count);
}

int qdio_setup_perf_stats(void);
void qdio_remove_perf_stats(void);

extern void qdio_perf_stat_inc(atomic_long_t *count);
extern void qdio_perf_stat_dec(atomic_long_t *count);

#endif

0 comments on commit 23fbc31

Please sign in to comment.