Changeset 4687fcd4 in mainline for uspace/drv/usbhub/usbhub.c
- Timestamp:
- 2011-01-29T10:19:04Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 72e19f50
- Parents:
- 67a1b78 (diff), a09128c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhub/usbhub.c
r67a1b78 r4687fcd4 203 203 204 204 //add the hub to list 205 f utex_down(&usb_hub_list_lock);205 fibril_mutex_lock(&usb_hub_list_lock); 206 206 usb_lst_append(&usb_hub_list, hub_info); 207 f utex_up(&usb_hub_list_lock);207 fibril_mutex_unlock(&usb_hub_list_lock); 208 208 209 209 dprintf(1, "hub info added to list"); … … 445 445 */ 446 446 usb_general_list_t * lst_item; 447 f utex_down(&usb_hub_list_lock);447 fibril_mutex_lock(&usb_hub_list_lock); 448 448 for (lst_item = usb_hub_list.next; 449 449 lst_item != &usb_hub_list; 450 450 lst_item = lst_item->next) { 451 f utex_up(&usb_hub_list_lock);451 fibril_mutex_unlock(&usb_hub_list_lock); 452 452 usb_hub_info_t * hub_info = ((usb_hub_info_t*)lst_item->data); 453 453 /* … … 488 488 489 489 if (opResult != EOK) { 490 free(change_bitmap); 490 491 dprintf(1, "something went wrong while getting status of hub"); 491 492 continue; … … 503 504 504 505 ipc_hangup(hc); 505 f utex_down(&usb_hub_list_lock);506 } 507 f utex_up(&usb_hub_list_lock);506 fibril_mutex_lock(&usb_hub_list_lock); 507 } 508 fibril_mutex_unlock(&usb_hub_list_lock); 508 509 } 509 510
Note:
See TracChangeset
for help on using the changeset viewer.