diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2013-10-14 05:06:04 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-18 14:03:54 -0400 |
commit | d265214b614aac62cdb8baed7ed3d77494cc9bdc (patch) | |
tree | bb67a739092baf61e7cea155e1c53801bb1cce1d /drivers/net/wireless/ath/ath9k/dfs_debug.h | |
parent | 95a5992e43046104ca92c6fb93a80d140d1aa7ce (diff) |
ath9k: dfs move ath_dfs_pool_stats
Move ath_dfs_pool_stats to dfs_pattern_detector
code to be not specyfic only for ath9k.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Reviewed-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/dfs_debug.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/dfs_debug.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath9k/dfs_debug.h b/drivers/net/wireless/ath/ath9k/dfs_debug.h index e36810a4b585..0a7ddf4c88c9 100644 --- a/drivers/net/wireless/ath/ath9k/dfs_debug.h +++ b/drivers/net/wireless/ath/ath9k/dfs_debug.h | |||
@@ -51,25 +51,11 @@ struct ath_dfs_stats { | |||
51 | u32 radar_detected; | 51 | u32 radar_detected; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | /** | ||
55 | * struct ath_dfs_pool_stats - DFS Statistics for global pools | ||
56 | */ | ||
57 | struct ath_dfs_pool_stats { | ||
58 | u32 pool_reference; | ||
59 | u32 pulse_allocated; | ||
60 | u32 pulse_alloc_error; | ||
61 | u32 pulse_used; | ||
62 | u32 pseq_allocated; | ||
63 | u32 pseq_alloc_error; | ||
64 | u32 pseq_used; | ||
65 | }; | ||
66 | #if defined(CONFIG_ATH9K_DFS_DEBUGFS) | 54 | #if defined(CONFIG_ATH9K_DFS_DEBUGFS) |
67 | 55 | ||
68 | #define DFS_STAT_INC(sc, c) (sc->debug.stats.dfs_stats.c++) | 56 | #define DFS_STAT_INC(sc, c) (sc->debug.stats.dfs_stats.c++) |
69 | void ath9k_dfs_init_debug(struct ath_softc *sc); | 57 | void ath9k_dfs_init_debug(struct ath_softc *sc); |
70 | 58 | ||
71 | #define DFS_POOL_STAT_INC(c) (global_dfs_pool_stats.c++) | ||
72 | #define DFS_POOL_STAT_DEC(c) (global_dfs_pool_stats.c--) | ||
73 | extern struct ath_dfs_pool_stats global_dfs_pool_stats; | 59 | extern struct ath_dfs_pool_stats global_dfs_pool_stats; |
74 | 60 | ||
75 | #else | 61 | #else |
@@ -77,8 +63,6 @@ extern struct ath_dfs_pool_stats global_dfs_pool_stats; | |||
77 | #define DFS_STAT_INC(sc, c) do { } while (0) | 63 | #define DFS_STAT_INC(sc, c) do { } while (0) |
78 | static inline void ath9k_dfs_init_debug(struct ath_softc *sc) { } | 64 | static inline void ath9k_dfs_init_debug(struct ath_softc *sc) { } |
79 | 65 | ||
80 | #define DFS_POOL_STAT_INC(c) do { } while (0) | ||
81 | #define DFS_POOL_STAT_DEC(c) do { } while (0) | ||
82 | #endif /* CONFIG_ATH9K_DFS_DEBUGFS */ | 66 | #endif /* CONFIG_ATH9K_DFS_DEBUGFS */ |
83 | 67 | ||
84 | #endif /* ATH9K_DFS_DEBUG_H */ | 68 | #endif /* ATH9K_DFS_DEBUG_H */ |