Commit 9232d2d6 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: fix CamelCase controlvm globals

Fix the CamelCase variable names:
Periodic_controlvm_work => periodic_controlvm_work
Periodic_controlvm_workqueue => periodic_controlvm_workqueue

Update all references to use the corrected names.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b53e0e93
...@@ -65,8 +65,8 @@ static int clientregistered; ...@@ -65,8 +65,8 @@ static int clientregistered;
#define MAX_CHIPSET_EVENTS 2 #define MAX_CHIPSET_EVENTS 2
static u8 chipset_events[MAX_CHIPSET_EVENTS] = { 0, 0 }; static u8 chipset_events[MAX_CHIPSET_EVENTS] = { 0, 0 };
static struct delayed_work Periodic_controlvm_work; static struct delayed_work periodic_controlvm_work;
static struct workqueue_struct *Periodic_controlvm_workqueue; static struct workqueue_struct *periodic_controlvm_workqueue;
static DEFINE_SEMAPHORE(NotifierLock); static DEFINE_SEMAPHORE(NotifierLock);
static struct controlvm_message_header g_DiagMsgHdr; static struct controlvm_message_header g_DiagMsgHdr;
...@@ -1892,8 +1892,8 @@ controlvm_periodic_work(struct work_struct *work) ...@@ -1892,8 +1892,8 @@ controlvm_periodic_work(struct work_struct *work)
poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST; poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST;
} }
queue_delayed_work(Periodic_controlvm_workqueue, queue_delayed_work(periodic_controlvm_workqueue,
&Periodic_controlvm_work, poll_jiffies); &periodic_controlvm_work, poll_jiffies);
} }
static void static void
...@@ -1997,8 +1997,8 @@ setup_crash_devices_work_queue(struct work_struct *work) ...@@ -1997,8 +1997,8 @@ setup_crash_devices_work_queue(struct work_struct *work)
poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_SLOW; poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_SLOW;
queue_delayed_work(Periodic_controlvm_workqueue, queue_delayed_work(periodic_controlvm_workqueue,
&Periodic_controlvm_work, poll_jiffies); &periodic_controlvm_work, poll_jiffies);
} }
static void static void
...@@ -2249,15 +2249,15 @@ visorchipset_init(void) ...@@ -2249,15 +2249,15 @@ 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 (visorchipset_crash_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
INIT_DELAYED_WORK(&Periodic_controlvm_work, INIT_DELAYED_WORK(&periodic_controlvm_work,
controlvm_periodic_work); controlvm_periodic_work);
Periodic_controlvm_workqueue = periodic_controlvm_workqueue =
create_singlethread_workqueue("visorchipset_controlvm"); create_singlethread_workqueue("visorchipset_controlvm");
if (Periodic_controlvm_workqueue == NULL) { if (periodic_controlvm_workqueue == NULL) {
POSTCODE_LINUX_2(CREATE_WORKQUEUE_FAILED_PC, POSTCODE_LINUX_2(CREATE_WORKQUEUE_FAILED_PC,
DIAG_SEVERITY_ERR); DIAG_SEVERITY_ERR);
rc = -ENOMEM; rc = -ENOMEM;
...@@ -2265,8 +2265,8 @@ visorchipset_init(void) ...@@ -2265,8 +2265,8 @@ visorchipset_init(void)
} }
most_recent_message_jiffies = jiffies; most_recent_message_jiffies = jiffies;
poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST; poll_jiffies = POLLJIFFIES_CONTROLVMCHANNEL_FAST;
rc = queue_delayed_work(Periodic_controlvm_workqueue, rc = queue_delayed_work(periodic_controlvm_workqueue,
&Periodic_controlvm_work, poll_jiffies); &periodic_controlvm_work, poll_jiffies);
if (rc < 0) { if (rc < 0) {
POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC, POSTCODE_LINUX_2(QUEUE_DELAYED_WORK_PC,
DIAG_SEVERITY_ERR); DIAG_SEVERITY_ERR);
...@@ -2299,10 +2299,10 @@ visorchipset_exit(void) ...@@ -2299,10 +2299,10 @@ visorchipset_exit(void)
if (visorchipset_disable_controlvm) { if (visorchipset_disable_controlvm) {
; ;
} else { } else {
cancel_delayed_work(&Periodic_controlvm_work); cancel_delayed_work(&periodic_controlvm_work);
flush_workqueue(Periodic_controlvm_workqueue); flush_workqueue(periodic_controlvm_workqueue);
destroy_workqueue(Periodic_controlvm_workqueue); destroy_workqueue(periodic_controlvm_workqueue);
Periodic_controlvm_workqueue = NULL; periodic_controlvm_workqueue = NULL;
destroy_controlvm_payload_info(&ControlVm_payload_info); destroy_controlvm_payload_info(&ControlVm_payload_info);
} }
Test_Vnic_channel = NULL; Test_Vnic_channel = NULL;
......
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