Changeset 89beb08 in mainline for uspace/drv/usbhub/main.c


Ignore:
Timestamp:
2011-01-28T14:38:15Z (13 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ef8d655
Parents:
ea6a824 (diff), ba5ab09 (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.
Message:

merging small fixes from /smekideki

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhub/main.c

    rea6a824 r89beb08  
    4242
    4343usb_general_list_t usb_hub_list;
    44 futex_t usb_hub_list_lock;
     44fibril_mutex_t usb_hub_list_lock;
    4545
    4646static driver_ops_t hub_driver_ops = {
     
    6565{
    6666        usb_dprintf_enable(NAME, 0);
    67 
    68         futex_initialize(&usb_hub_list_lock, 0);
     67       
     68        fibril_mutex_initialize(&usb_hub_list_lock);
     69        fibril_mutex_lock(&usb_hub_list_lock);
    6970        usb_lst_init(&usb_hub_list);
    70         futex_up(&usb_hub_list_lock);
     71        fibril_mutex_unlock(&usb_hub_list_lock);
    7172
    7273        fid_t fid = fibril_create(usb_hub_control_loop, NULL);
Note: See TracChangeset for help on using the changeset viewer.