diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2017-07-10 13:23:08 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-02 07:57:42 -0700 |
commit | 8bac58be1700dab3cac8cb53ed0651da40777024 (patch) | |
tree | fb479aa5cd5e96096cf4774b56253163dc8d2cf4 /net/switchdev/switchdev.c | |
parent | 523a0b558db4ca205522976077911e5efe235781 (diff) |
fm10k: avoid needless delay when loading driver
When we load the driver, we set the last_reset to be in the future,
which delays the initial driver reset. Additionally, the service task
isn't scheduled to run automatically until the timer runs out. This
causes a needless delay of the first reset to begin talking to the
switch manager.
We can avoid this by simply not setting last_reset and immediately
scheduling the service task while in probe. This allows the device to
wake up faster, and avoids this delay.
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions