Commit 48ea526a authored by Amir Vadai's avatar Amir Vadai Committed by David S. Miller

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: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b3292e88
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/radix-tree.h> #include <linux/radix-tree.h>
#include <linux/cpu_rmap.h> #include <linux/cpu_rmap.h>
#include <linux/crash_dump.h>
#include <linux/atomic.h> #include <linux/atomic.h>
...@@ -1275,7 +1276,7 @@ int mlx4_mr_rereg_mem_write(struct mlx4_dev *dev, struct mlx4_mr *mr, ...@@ -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) */ /* Returns true if running in low memory profile (kdump kernel) */
static inline bool mlx4_low_memory_profile(void) static inline bool mlx4_low_memory_profile(void)
{ {
return reset_devices; return is_kdump_kernel();
} }
#endif /* MLX4_DEVICE_H */ #endif /* MLX4_DEVICE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment