summaryrefslogtreecommitdiff
path: root/trafgen/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-10-29 15:58:05 +0100
committerTobias Klauser <tklauser@distanz.ch>2015-10-29 15:58:05 +0100
commit55274adedcabdc3f1e4d66b2c3b77b1612acf20d (patch)
tree0d6b5cd7315022b5dd543698a9dcdd51eb050fda /trafgen/Makefile
parentdbd83f04dfb4b4265a290bad6a1813825f7ab3c6 (diff)
ring: Simplify calculation of number of frames in a tpacket ring
The number of frames in a tpacket ring (ring->layout.tp_frame_nr) is currently calculated as: tp_frame_nr = tp_block_size / tp_frame_size * tp_block_nr Substituting tp_block_nr with 'size / tp_block_size' (as calculated in the line above), we get: tp_frame_nr = tp_block_size / tp_frame_size * (size / tp_block_size) and realize that we can omit tp_block_size as it cancels out, leading to: tp_frame_nr = 1 / tp_frame_size * (size / 1) = size / tp_frame_size Adjust the calculation in setup_ring_layout_generic() accordingly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen/Makefile')
0 files changed, 0 insertions, 0 deletions
/kernel/git/gregkh/char-misc
Pull char/misc driver fixes from Greg KH: "Here are two bugfixes that resolve some reported issues. One in the firmware loader, that should fix the much-reported problem of crashes with it. The other is a hyperv fix for a reported regression. Both have been in linux-next for a week or so with no reported issues" * tag 'char-misc-4.10-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read() firmware: fix NULL pointer dereference in __fw_load_abort()
Diffstat (limited to 'drivers/usb/host/ohci-ppc-of.c')