patch-2.4.19 linux-2.4.19/drivers/usb/usb-uhci.c
Next file: linux-2.4.19/drivers/usb/usb-uhci.h
Previous file: linux-2.4.19/drivers/usb/usb-skeleton.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Fri Aug 2 17:39:45 2002
- Orig file:
linux-2.4.18/drivers/usb/usb-uhci.c
- Orig date:
Mon Feb 25 11:38:07 2002
diff -urN linux-2.4.18/drivers/usb/usb-uhci.c linux-2.4.19/drivers/usb/usb-uhci.c
@@ -86,8 +86,8 @@
static kmem_cache_t *urb_priv_kmem;
#endif
-#define SLAB_FLAG (in_interrupt ()? SLAB_ATOMIC : SLAB_KERNEL)
-#define KMALLOC_FLAG (in_interrupt ()? GFP_ATOMIC : GFP_KERNEL)
+#define SLAB_FLAG (in_interrupt () || current->state != TASK_RUNNING ? SLAB_ATOMIC : SLAB_KERNEL)
+#define KMALLOC_FLAG (in_interrupt () || current->state != TASK_RUNNING ? GFP_ATOMIC : GFP_KERNEL)
/* CONFIG_USB_UHCI_HIGH_BANDWITH turns on Full Speed Bandwidth
* Reclamation: feature that puts loop on descriptor loop when
@@ -95,7 +95,7 @@
* is optimal, but PCI can be slowed down up-to 5 times, slowing down
* system performance (eg. framebuffer devices).
*/
-#define CONFIG_USB_UHCI_HIGH_BANDWIDTH
+#define CONFIG_USB_UHCI_HIGH_BANDWIDTH
/* *_DEPTH_FIRST puts descriptor in depth-first mode. This has
* somehow similar effect to FSBR (higher speed), but does not
@@ -143,7 +143,7 @@
q=s->free_desc.prev;
while (q != &s->free_desc && (force || n<100)) {
- qh = list_entry (q, uhci_desc_t, horizontal);
+ qh = list_entry (q, uhci_desc_t, horizontal);
q=qh->horizontal.prev;
if ((qh->last_used!=now) || force)
@@ -170,7 +170,7 @@
#ifdef CONFIG_USB_UHCI_HIGH_BANDWIDTH
_static void enable_desc_loop(uhci_t *s, urb_t *urb)
{
- int flags;
+ unsigned long flags;
if (urb->transfer_flags & USB_NO_FSBR)
return;
@@ -185,7 +185,7 @@
/*-------------------------------------------------------------------*/
_static void disable_desc_loop(uhci_t *s, urb_t *urb)
{
- int flags;
+ unsigned long flags;
if (urb->transfer_flags & USB_NO_FSBR)
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)