Use a big-lock for kernel sychronization instead of fine-grained locking
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
static atomic_int usb_ms_counter = 0;
|
||||
|
||||
static struct device* usb_ms_init(struct xhci* xhci, struct xhci_usb_device* usb_device,
|
||||
struct proc* proc, struct reschedule_ctx* rctx,
|
||||
uint64_t* lockflags) {
|
||||
struct proc* proc, struct reschedule_ctx* rctx) {
|
||||
static device_op_func_t ops[] = {
|
||||
[XDRV_GET_SIZE] = &usbdrv_get_size,
|
||||
[XDRV_GET_SECTOR_SIZE] = &usbdrv_get_sector_size,
|
||||
@@ -29,7 +28,6 @@ static struct device* usb_ms_init(struct xhci* xhci, struct xhci_usb_device* usb
|
||||
struct usbdrv_init init = {
|
||||
.xhci = xhci,
|
||||
.usb_device = usb_device,
|
||||
.lockflags = lockflags,
|
||||
};
|
||||
|
||||
char key[30];
|
||||
|
||||
Reference in New Issue
Block a user