aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ntb/ntb_transport.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2016-07-10 19:15:29 +0000
committerAlexander Motin <mav@FreeBSD.org>2016-07-10 19:15:29 +0000
commitd2de6786c10c8c9896d98f92f376ee634576c490 (patch)
tree70f8832f3a100ff8d387d10ebdd27783b7abb862 /sys/dev/ntb/ntb_transport.c
parentdac935533b354a9be9167013e999d128bfc8392b (diff)
downloadsrc-d2de6786c10c8c9896d98f92f376ee634576c490.tar.gz
src-d2de6786c10c8c9896d98f92f376ee634576c490.zip
Remove callout_reset(link_work) from ntb_transport_attach().
At that point link is quite likely not established yet, so messing with scratch registers is premature there. Original commit message mentioned code diff reduction from Linux, but this line is not present in Linux now.
Notes
Notes: svn path=/head/; revision=302529
Diffstat (limited to 'sys/dev/ntb/ntb_transport.c')
-rw-r--r--sys/dev/ntb/ntb_transport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/ntb/ntb_transport.c b/sys/dev/ntb/ntb_transport.c
index 2e7ad2fee23f..31612cccc6ac 100644
--- a/sys/dev/ntb/ntb_transport.c
+++ b/sys/dev/ntb/ntb_transport.c
@@ -394,7 +394,6 @@ ntb_transport_attach(device_t dev)
nt->link_is_up = false;
NTB_LINK_ENABLE(ntb, NTB_SPEED_AUTO, NTB_WIDTH_AUTO);
- callout_reset(&nt->link_work, 0, ntb_transport_link_work, nt);
if (enable_xeon_watchdog != 0)
callout_reset(&nt->link_watchdog, 0, xeon_link_watchdog_hb, nt);