summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@intel.com>2019-04-23 22:44:21 +0300
committerDavid S. Miller <davem@davemloft.net>2019-04-24 05:52:32 +0300
commit8599099f0c58cec677a47c968e777eee8d64fb80 (patch)
tree4e0d9fec53474f079b616dbe4088ed22afd70898 /virt
parent59ab87f6eb920fd0ee3058ae4c0956f52036b893 (diff)
downloadlinux-8599099f0c58cec677a47c968e777eee8d64fb80.tar.xz
net: sched: taprio: Refactor taprio_get_start_time()
This patch does a code refactoring to taprio_get_start_time() function to improve readability and report error properly. If 'base' time is later than 'now', the start time is equal to 'base' and taprio_get_start_time() is done. That's the natural case so we move that code to the beginning of the function. Also, if 'cycle' calculation is zero, something went really wrong with taprio and we should log that internal error properly. Signed-off-by: Andre Guedes <andre.guedes@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions