aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2014-08-25 16:06:53 +0300
committerDavid S. Miller <davem@davemloft.net>2014-08-25 15:42:19 -0700
commit48ea526a6877d605c961aa37fae33f3227b29424 (patch)
treedfb04a2e7bf310edfd207dd85270b98f0b8d69f6 /include/linux/mlx4/device.h
parentcrash_dump: Make is_kdump_kernel() accessible from modules (diff)
downloadlinux-dev-48ea526a6877d605c961aa37fae33f3227b29424.tar.xz
linux-dev-48ea526a6877d605c961aa37fae33f3227b29424.zip
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 '')
-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 @@
#include <linux/completion.h>
#include <linux/radix-tree.h>
#include <linux/cpu_rmap.h>
+#include <linux/crash_dump.h>
#include <linux/atomic.h>
@@ -1275,7 +1276,7 @@ int mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr,
/* Returns true if running in low memory profile (kdump kernel) */
static inline bool mlx4_low_memory_profile(void)
{
- return reset_devices;
+ return is_kdump_kernel();
}
#endif /* MLX4_DEVICE_H */