]> git.karo-electronics.de Git - mv-sheeva.git/commit
Bluetooth: recalculate priorities when channels are starving
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Nov 2011 13:52:03 +0000 (15:52 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 7 Nov 2011 19:24:57 +0000 (17:24 -0200)
commit02b20f0bb661829cbd431e5deb2474e909e65cec
treede363e727b52bf1cdea266fd013b28ccec7a75e1
parentec1cce24d5950e797f10650abf7890ead67c6e64
Bluetooth: recalculate priorities when channels are starving

To avoid starvation the priority is recalculated so that the starving
channels are promoted to HCI_PRIO_MAX - 1 (6).

HCI_PRIO_MAX (7) is considered special, because it requires CAP_NET_ADMIN
capability which can be used to provide more guaranties, so it is not used
when promoting.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_core.c