Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107579090
D46148.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
822 B
Referenced Files
None
Subscribers
None
D46148.diff
View Options
diff --git a/sys/sys/buf_ring.h b/sys/sys/buf_ring.h
--- a/sys/sys/buf_ring.h
+++ b/sys/sys/buf_ring.h
@@ -165,9 +165,6 @@
buf_ring_dequeue_sc(struct buf_ring *br)
{
uint32_t cons_head, cons_next;
-#ifdef PREFETCH_DEFINED
- uint32_t cons_next_next;
-#endif
uint32_t prod_tail;
void *buf;
@@ -204,20 +201,10 @@
prod_tail = atomic_load_acq_32(&br->br_prod_tail);
cons_next = (cons_head + 1) & br->br_cons_mask;
-#ifdef PREFETCH_DEFINED
- cons_next_next = (cons_head + 2) & br->br_cons_mask;
-#endif
if (cons_head == prod_tail)
return (NULL);
-#ifdef PREFETCH_DEFINED
- if (cons_next != prod_tail) {
- prefetch(br->br_ring[cons_next]);
- if (cons_next_next != prod_tail)
- prefetch(br->br_ring[cons_next_next]);
- }
-#endif
br->br_cons_head = cons_next;
buf = br->br_ring[cons_head];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 4:27 AM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15833396
Default Alt Text
D46148.diff (822 B)
Attached To
Mode
D46148: buf_ring: Remove PREFETCH_DEFINED
Attached
Detach File
Event Timeline
Log In to Comment