Bluetooth: make use of connection number to optimize the scheduler
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 17 Aug 2011 13:23:00 +0000 (16:23 +0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 21 Sep 2011 15:58:10 +0000 (12:58 -0300)
commit52087a792c1513b85de674a4fc67fb92855474c3
tree4b7bf7510a44378a5cecfcb66d22364624c2dd56
parentda3ba88a9996cd64c6768bed5727e02da81e2c8d
Bluetooth: make use of connection number to optimize the scheduler

This checks if there is any existing connection according to its type
before start iterating in the list and immediately stop iterating when
reaching the number of connections.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c