diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 14:35:55 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-02-02 22:36:41 -0500 |
commit | 88e9bd7caee694498cadccba5c1e63baad6d83ab (patch) | |
tree | b0fac3d386e5791a7ba83c821daf8cf3fdec360c /src/hw/usb.c | |
parent | 32a2b0e38cdd97ad8b0dc988e8114d191801b9e5 (diff) | |
download | seabios-hppa-88e9bd7caee694498cadccba5c1e63baad6d83ab.zip seabios-hppa-88e9bd7caee694498cadccba5c1e63baad6d83ab.tar.gz seabios-hppa-88e9bd7caee694498cadccba5c1e63baad6d83ab.tar.bz2 |
usb: Eliminate USB controller setup thread
There are no longer any sleep or yield calls during the usb controller
device scans, so there is no need to run these device scans in a
separate thread.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/hw/usb.c')
-rw-r--r-- | src/hw/usb.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/hw/usb.c b/src/hw/usb.c index 2bffd25..20731d1 100644 --- a/src/hw/usb.c +++ b/src/hw/usb.c @@ -485,21 +485,15 @@ usb_enumerate(struct usbhub_s *hub) } void -__usb_setup(void *data) -{ - dprintf(3, "init usb\n"); - xhci_setup(); - ehci_setup(); - uhci_setup(); - ohci_setup(); -} - -void usb_setup(void) { ASSERT32FLAT(); if (! CONFIG_USB) return; + dprintf(3, "init usb\n"); usb_time_sigatt = romfile_loadint("etc/usb-time-sigatt", USB_TIME_SIGATT); - run_thread(__usb_setup, NULL); + xhci_setup(); + ehci_setup(); + uhci_setup(); + ohci_setup(); } |