Commit 1ba00980 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix kdump support

The s-Par drivers used to be out-of-tree, so they needed a parameter to
let them know we were going into a dump. This patch removes that code
and uses the built-in kernel function instead.
Reviewed-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9c4e936a
...@@ -36,7 +36,6 @@ extern int visorchipset_serverregwait; ...@@ -36,7 +36,6 @@ extern int visorchipset_serverregwait;
extern int visorchipset_clientregwait; extern int visorchipset_clientregwait;
extern int visorchipset_testteardown; extern int visorchipset_testteardown;
extern int visorchipset_disable_controlvm; extern int visorchipset_disable_controlvm;
extern int visorchipset_crash_kernel;
extern int visorchipset_holdchipsetready; extern int visorchipset_holdchipsetready;
#endif #endif
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/uuid.h> #include <linux/uuid.h>
#include <linux/crash_dump.h>
#define CURRENT_FILE_PC VISOR_CHIPSET_PC_visorchipset_main_c #define CURRENT_FILE_PC VISOR_CHIPSET_PC_visorchipset_main_c
#define TEST_VNIC_PHYSITF "eth0" /* physical network itf for #define TEST_VNIC_PHYSITF "eth0" /* physical network itf for
...@@ -2207,7 +2208,7 @@ visorchipset_init(void) ...@@ -2207,7 +2208,7 @@ visorchipset_init(void)
} }
if (!visorchipset_disable_controlvm) { if (!visorchipset_disable_controlvm) {
/* if booting in a crash kernel */ /* if booting in a crash kernel */
if (visorchipset_crash_kernel) if (is_kdump_kernel())
INIT_DELAYED_WORK(&periodic_controlvm_work, INIT_DELAYED_WORK(&periodic_controlvm_work,
setup_crash_devices_work_queue); setup_crash_devices_work_queue);
else else
...@@ -2315,10 +2316,6 @@ module_param_named(disable_controlvm, visorchipset_disable_controlvm, int, ...@@ -2315,10 +2316,6 @@ module_param_named(disable_controlvm, visorchipset_disable_controlvm, int,
MODULE_PARM_DESC(visorchipset_disable_controlvm, MODULE_PARM_DESC(visorchipset_disable_controlvm,
"1 to disable polling of controlVm channel"); "1 to disable polling of controlVm channel");
int visorchipset_disable_controlvm = 0; /* default is off */ int visorchipset_disable_controlvm = 0; /* default is off */
module_param_named(crash_kernel, visorchipset_crash_kernel, int, S_IRUGO);
MODULE_PARM_DESC(visorchipset_crash_kernel,
"1 means we are running in crash kernel");
int visorchipset_crash_kernel = 0; /* default is running in non-crash kernel */
module_param_named(holdchipsetready, visorchipset_holdchipsetready, module_param_named(holdchipsetready, visorchipset_holdchipsetready,
int, S_IRUGO); int, S_IRUGO);
MODULE_PARM_DESC(visorchipset_holdchipsetready, MODULE_PARM_DESC(visorchipset_holdchipsetready,
......
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