Changeset 7a51d75 in mainline for uspace/drv/usbhub/usbhub.c


Ignore:
Timestamp:
2011-01-28T15:30:42Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ea991e84
Parents:
c5c003c (diff), 2b96463 (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:

Merge development/ changes

File:
1 edited

Legend:

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

    rc5c003c r7a51d75  
    203203
    204204        //add the hub to list
    205         futex_down(&usb_hub_list_lock);
     205        fibril_mutex_lock(&usb_hub_list_lock);
    206206        usb_lst_append(&usb_hub_list, hub_info);
    207         futex_up(&usb_hub_list_lock);
     207        fibril_mutex_unlock(&usb_hub_list_lock);
    208208
    209209        dprintf(1, "hub info added to list");
     
    445445         */
    446446        usb_general_list_t * lst_item;
    447         futex_down(&usb_hub_list_lock);
     447        fibril_mutex_lock(&usb_hub_list_lock);
    448448        for (lst_item = usb_hub_list.next;
    449449                        lst_item != &usb_hub_list;
    450450                        lst_item = lst_item->next) {
    451                 futex_up(&usb_hub_list_lock);
     451                fibril_mutex_unlock(&usb_hub_list_lock);
    452452                usb_hub_info_t * hub_info = ((usb_hub_info_t*)lst_item->data);
    453453                /*
     
    488488
    489489                if (opResult != EOK) {
     490                        free(change_bitmap);
    490491                        dprintf(1, "something went wrong while getting status of hub");
    491492                        continue;
     
    503504
    504505                ipc_hangup(hc);
    505                 futex_down(&usb_hub_list_lock);
    506         }
    507         futex_up(&usb_hub_list_lock);
     506                fibril_mutex_lock(&usb_hub_list_lock);
     507        }
     508        fibril_mutex_unlock(&usb_hub_list_lock);
    508509}
    509510
Note: See TracChangeset for help on using the changeset viewer.