Commit 6577cbf1 authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visorbus: use all 80 characters for multi-line messages

The file visorchipset had a bunch of comments that were not using the full
screen before they wrapped, update the comments to wrap at 80 characters
instead.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 45311439
...@@ -41,9 +41,9 @@ static const guid_t visor_controlvm_channel_guid = VISOR_CONTROLVM_CHANNEL_GUID; ...@@ -41,9 +41,9 @@ static const guid_t visor_controlvm_channel_guid = VISOR_CONTROLVM_CHANNEL_GUID;
#define UNISYS_VISOR_ID_EDX 0x34367261 #define UNISYS_VISOR_ID_EDX 0x34367261
/* /*
* When the controlvm channel is idle for at least MIN_IDLE_SECONDS, * When the controlvm channel is idle for at least MIN_IDLE_SECONDS, we switch
* we switch to slow polling mode. As soon as we get a controlvm * to slow polling mode. As soon as we get a controlvm message, we switch back
* message, we switch back to fast polling mode. * to fast polling mode.
*/ */
#define MIN_IDLE_SECONDS 10 #define MIN_IDLE_SECONDS 10
...@@ -377,15 +377,15 @@ static int chipset_init(struct controlvm_message *inmsg) ...@@ -377,15 +377,15 @@ static int chipset_init(struct controlvm_message *inmsg)
chipset_inited = 1; chipset_inited = 1;
/* /*
* Set features to indicate we support parahotplug (if Command * Set features to indicate we support parahotplug (if Command also
* also supports it). * supports it).
*/ */
features = inmsg->cmd.init_chipset.features & features = inmsg->cmd.init_chipset.features &
VISOR_CHIPSET_FEATURE_PARA_HOTPLUG; VISOR_CHIPSET_FEATURE_PARA_HOTPLUG;
/* /*
* Set the "reply" bit so Command knows this is a * Set the "reply" bit so Command knows this is a features-aware
* features-aware driver. * driver.
*/ */
features |= VISOR_CHIPSET_FEATURE_REPLY; features |= VISOR_CHIPSET_FEATURE_REPLY;
...@@ -1210,10 +1210,9 @@ static int parahotplug_process_message(struct controlvm_message *inmsg) ...@@ -1210,10 +1210,9 @@ static int parahotplug_process_message(struct controlvm_message *inmsg)
} }
/* /*
* For disable messages, add the request to the * For disable messages, add the request to the request list before
* request list before kicking off the udev script. It * kicking off the udev script. It won't get responded to until the
* won't get responded to until the script has * 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);
...@@ -1554,8 +1553,8 @@ static int handle_command(struct controlvm_message inmsg, u64 channel_addr) ...@@ -1554,8 +1553,8 @@ static int handle_command(struct controlvm_message inmsg, u64 channel_addr)
err = parahotplug_process_message(&inmsg); err = parahotplug_process_message(&inmsg);
} else { } else {
/* /*
* save the hdr and cmd structures for later use * save the hdr and cmd structures for later use when
* when sending back the response to Command * sending back the response to Command
*/ */
err = visorbus_device_changestate(&inmsg); err = visorbus_device_changestate(&inmsg);
break; break;
...@@ -1664,9 +1663,8 @@ static void controlvm_periodic_work(struct work_struct *work) ...@@ -1664,9 +1663,8 @@ static void controlvm_periodic_work(struct work_struct *work)
if (chipset_dev->controlvm_pending_msg_valid) { if (chipset_dev->controlvm_pending_msg_valid) {
/* /*
* we throttled processing of a prior * we throttled processing of a prior msg, so try to process
* msg, so try to process it again * it again rather than reading a new one
* rather than reading a new one
*/ */
inmsg = chipset_dev->controlvm_pending_msg; inmsg = chipset_dev->controlvm_pending_msg;
chipset_dev->controlvm_pending_msg_valid = false; chipset_dev->controlvm_pending_msg_valid = false;
...@@ -1701,9 +1699,8 @@ static void controlvm_periodic_work(struct work_struct *work) ...@@ -1701,9 +1699,8 @@ static void controlvm_periodic_work(struct work_struct *work)
if (time_after(jiffies, chipset_dev->most_recent_message_jiffies + if (time_after(jiffies, chipset_dev->most_recent_message_jiffies +
(HZ * MIN_IDLE_SECONDS))) { (HZ * MIN_IDLE_SECONDS))) {
/* /*
* it's been longer than MIN_IDLE_SECONDS since we * it's been longer than MIN_IDLE_SECONDS since we processed
* processed our last controlvm message; slow down the * our last controlvm message; slow down the polling
* polling
*/ */
if (chipset_dev->poll_jiffies != if (chipset_dev->poll_jiffies !=
POLLJIFFIES_CONTROLVMCHANNEL_SLOW) POLLJIFFIES_CONTROLVMCHANNEL_SLOW)
......
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