Skip to content

Commit

Permalink
Bluetooth: Use queue in the device list
Browse files Browse the repository at this point in the history
Use queue instead of stack discipline for device list. When processing
dev_list with list_for_each* devices will be prosessed in order they
were added (Usually BR/EDR first and AMP later).

Also output from hciconfig looks nicer :-)

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo F. Padovan committed Nov 21, 2011
1 parent 47c15e2 commit c6feeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ int hci_register_dev(struct hci_dev *hdev)

sprintf(hdev->name, "hci%d", id);
hdev->id = id;
list_add(&hdev->list, head);
list_add_tail(&hdev->list, head);

atomic_set(&hdev->refcnt, 1);
spin_lock_init(&hdev->lock);
Expand Down

0 comments on commit c6feeb2

Please sign in to comment.