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

staging: unisys: fix CamelCased Parahotplug globals

Fix the CamelCase names:

Parahotplug_request_list => parahotplug_request_list
Parahotplug_request_list_lock => parahotplug_request_list_lock

Update 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 712f42cd
...@@ -212,8 +212,8 @@ struct parahotplug_request { ...@@ -212,8 +212,8 @@ struct parahotplug_request {
struct controlvm_message msg; struct controlvm_message msg;
}; };
static LIST_HEAD(Parahotplug_request_list); static LIST_HEAD(parahotplug_request_list);
static DEFINE_SPINLOCK(Parahotplug_request_list_lock); /* lock for above */ static DEFINE_SPINLOCK(parahotplug_request_list_lock); /* lock for above */
static void parahotplug_process_list(void); static void parahotplug_process_list(void);
/* Manages the info for a CONTROLVM_DUMP_CAPTURESTATE / /* Manages the info for a CONTROLVM_DUMP_CAPTURESTATE /
...@@ -1530,9 +1530,9 @@ parahotplug_process_list(void) ...@@ -1530,9 +1530,9 @@ parahotplug_process_list(void)
struct list_head *pos = NULL; struct list_head *pos = NULL;
struct list_head *tmp = NULL; struct list_head *tmp = NULL;
spin_lock(&Parahotplug_request_list_lock); spin_lock(&parahotplug_request_list_lock);
list_for_each_safe(pos, tmp, &Parahotplug_request_list) { list_for_each_safe(pos, tmp, &parahotplug_request_list) {
struct parahotplug_request *req = struct parahotplug_request *req =
list_entry(pos, struct parahotplug_request, list); list_entry(pos, struct parahotplug_request, list);
...@@ -1548,7 +1548,7 @@ parahotplug_process_list(void) ...@@ -1548,7 +1548,7 @@ parahotplug_process_list(void)
parahotplug_request_destroy(req); parahotplug_request_destroy(req);
} }
spin_unlock(&Parahotplug_request_list_lock); spin_unlock(&parahotplug_request_list_lock);
} }
/* /*
...@@ -1562,10 +1562,10 @@ parahotplug_request_complete(int id, u16 active) ...@@ -1562,10 +1562,10 @@ parahotplug_request_complete(int id, u16 active)
struct list_head *pos = NULL; struct list_head *pos = NULL;
struct list_head *tmp = NULL; struct list_head *tmp = NULL;
spin_lock(&Parahotplug_request_list_lock); spin_lock(&parahotplug_request_list_lock);
/* Look for a request matching "id". */ /* Look for a request matching "id". */
list_for_each_safe(pos, tmp, &Parahotplug_request_list) { list_for_each_safe(pos, tmp, &parahotplug_request_list) {
struct parahotplug_request *req = struct parahotplug_request *req =
list_entry(pos, struct parahotplug_request, list); list_entry(pos, struct parahotplug_request, list);
if (req->id == id) { if (req->id == id) {
...@@ -1573,7 +1573,7 @@ parahotplug_request_complete(int id, u16 active) ...@@ -1573,7 +1573,7 @@ parahotplug_request_complete(int id, u16 active)
* respond. * respond.
*/ */
list_del(pos); list_del(pos);
spin_unlock(&Parahotplug_request_list_lock); spin_unlock(&parahotplug_request_list_lock);
req->msg.cmd.device_change_state.state.active = active; req->msg.cmd.device_change_state.state.active = active;
if (req->msg.hdr.flags.response_expected) if (req->msg.hdr.flags.response_expected)
controlvm_respond_physdev_changestate( controlvm_respond_physdev_changestate(
...@@ -1584,7 +1584,7 @@ parahotplug_request_complete(int id, u16 active) ...@@ -1584,7 +1584,7 @@ parahotplug_request_complete(int id, u16 active)
} }
} }
spin_unlock(&Parahotplug_request_list_lock); spin_unlock(&parahotplug_request_list_lock);
return -1; return -1;
} }
...@@ -1622,9 +1622,9 @@ parahotplug_process_message(struct controlvm_message *inmsg) ...@@ -1622,9 +1622,9 @@ parahotplug_process_message(struct controlvm_message *inmsg)
* won't get responded to until the script has * won't get responded to until the script has
* indicated it's done. * indicated it's done.
*/ */
spin_lock(&Parahotplug_request_list_lock); spin_lock(&parahotplug_request_list_lock);
list_add_tail(&req->list, &Parahotplug_request_list); list_add_tail(&req->list, &parahotplug_request_list);
spin_unlock(&Parahotplug_request_list_lock); spin_unlock(&parahotplug_request_list_lock);
parahotplug_request_kickoff(req); parahotplug_request_kickoff(req);
} }
......
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