aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-08-02 10:13:10 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-12-20 11:02:06 -0800
commit59361316afcb08569af21e1af83e89c7051c055a (patch)
treea5c869635d88e80f836ca8b3f947d30e365fc25d /.clang-format
parentMerge branch 'bnxt_en-next' (diff)
downloadlinux-dev-59361316afcb08569af21e1af83e89c7051c055a.tar.xz
linux-dev-59361316afcb08569af21e1af83e89c7051c055a.zip
igb: reduce CPU0 latency when updating statistics
This change is based off of the work and suggestion of Jan Jablonsky <jan.jablonsky@thalesgroup.com>. The Watchdog workqueue in igb driver is scheduled every 2s for each network interface. That includes updating a statistics protected by spinlock. Function igb_update_stats in this case will be protected against preemption. According to number of a statistics registers (cca 60), processing this function might cause additional cpu load on CPU0. In case of statistics spinlock may be replaced with mutex, which reduce latency on CPU0. CC: Bernhard Kaindl <bernhard.kaindl@thalesgroup.com> CC: Jan Jablonsky <jan.jablonsky@thalesgroup.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions