From: Gustavo F. Padovan Date: Sat, 1 May 2010 19:15:42 +0000 (-0300) Subject: Bluetooth: Optimize SREJ_QUEUE append X-Git-Tag: v2.6.35-rc1~473^2~197 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1a9f3fa6ad842991538da2c3b2e29e047b131f;p=pandora-kernel.git Bluetooth: Optimize SREJ_QUEUE append When the I-frame received is the expected, i.e., its tx_seq is equal to expected_tx_seq and we are under a SREJ, we can just add it to the tail of the list. Doing that we change the complexity from O(n) to O(1). Signed-off-by: Gustavo F. Padovan Reviewed-by: João Paulo Rechi Vita Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed