summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-01-28 14:00:21 +0000
committerattilio <attilio@FreeBSD.org>2012-01-28 14:00:21 +0000
commit1521eb447956638ea699e9468527cdcbd2b28659 (patch)
tree51e3a468764edd7cbdf62d40b3ad43948e5ccd09 /sys/dev
parenta1d2d789bd56b6e4fbadcea3ce4cab8cd7fed168 (diff)
downloadFreeBSD-src-1521eb447956638ea699e9468527cdcbd2b28659.zip
FreeBSD-src-1521eb447956638ea699e9468527cdcbd2b28659.tar.gz
Avoid to check the same cache line/variable from all the locking
primitives by breaking stop_scheduler into a per-thread variable. Also, store the new td_stopsched very close to td_*locks members as they will be accessed mostly in the same codepaths as td_stopsched and this results in avoiding a further cache-line pollution, possibly. STOP_SCHEDULER() was pondered to use a new 'thread' argument, in order to take advantage of already cached curthread, but in the end there should not really be a performance benefit, while introducing a KPI breakage. In collabouration with: flo Reviewed by: avg MFC after: 3 months (or never) X-MFC: r228424
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb_transfer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c
index 4a5cfbd..e948299 100644
--- a/sys/dev/usb/usb_transfer.c
+++ b/sys/dev/usb/usb_transfer.c
@@ -42,6 +42,7 @@
#include <sys/callout.h>
#include <sys/malloc.h>
#include <sys/priv.h>
+#include <sys/proc.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
OpenPOWER on IntegriCloud