aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2014-08-25 09:06:53 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-25 18:42:19 -0400
commit48ea526a6877d605c961aa37fae33f3227b29424 (patch)
treedfb04a2e7bf310edfd207dd85270b98f0b8d69f6 /include/linux/mlx4
parentb3292e88e33677a90c18236fd895ace2d80efa3c (diff)
net/mlx4: Use is_kdump_kernel() to detect kdump kernel
Use is_kdump_kernel() to detect kdump kernel, instead of reset_devices. Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r--include/linux/mlx4/device.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index 071f6b234604..783dd099abd1 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -38,6 +38,7 @@
38#include <linux/completion.h> 38#include <linux/completion.h>
39#include <linux/radix-tree.h> 39#include <linux/radix-tree.h>
40#include <linux/cpu_rmap.h> 40#include <linux/cpu_rmap.h>
41#include <linux/crash_dump.h>
41 42
42#include <linux/atomic.h> 43#include <linux/atomic.h>
43 44
@@ -1275,7 +1276,7 @@ int mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr,
1275/* Returns true if running in low memory profile (kdump kernel) */ 1276/* Returns true if running in low memory profile (kdump kernel) */
1276static inline bool mlx4_low_memory_profile(void) 1277static inline bool mlx4_low_memory_profile(void)
1277{ 1278{
1278 return reset_devices; 1279 return is_kdump_kernel();
1279} 1280}
1280 1281
1281#endif /* MLX4_DEVICE_H */ 1282#endif /* MLX4_DEVICE_H */