Commit d36c4857 authored by Sameer Wadgaonkar's avatar Sameer Wadgaonkar Committed by Greg Kroah-Hartman

staging: unisys: visorbus: add comment to explain polling logic in controlvm_periodic_work

Added a comment to explain polling frequency variation logic in
controlvm_periodic_logic() in visorchipset.c.
Signed-off-by: default avatarSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Reported-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 172f4c36
...@@ -1787,6 +1787,11 @@ controlvm_periodic_work(struct work_struct *work) ...@@ -1787,6 +1787,11 @@ controlvm_periodic_work(struct work_struct *work)
/* parahotplug_worker */ /* parahotplug_worker */
parahotplug_process_list(); parahotplug_process_list();
/*
* The controlvm messages are sent in a bulk. If we start receiving messages, we
* want the polling to be fast. If we do not receive any message for
* MIN_IDLE_SECONDS, we can slow down the polling.
*/
schedule_out: schedule_out:
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))) {
......
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