Deleted Added
full compact
usb_process.c (227286) usb_process.c (227309)
1/* $FreeBSD: head/sys/dev/usb/usb_process.c 227286 2011-11-06 23:26:26Z hselasky $ */
1/* $FreeBSD: head/sys/dev/usb/usb_process.c 227309 2011-11-07 15:43:11Z ed $ */
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 70 unchanged lines hidden (view full) ---

80#define USB_THREAD_SUSPEND_CHECK() kthread_suspend_check(curproc)
81#define USB_THREAD_SUSPEND(p) kthread_suspend(p,0)
82#define USB_THREAD_EXIT(err) kthread_exit(err)
83#endif
84
85#ifdef USB_DEBUG
86static int usb_proc_debug;
87
2/*-
3 * Copyright (c) 2008 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.

--- 70 unchanged lines hidden (view full) ---

80#define USB_THREAD_SUSPEND_CHECK() kthread_suspend_check(curproc)
81#define USB_THREAD_SUSPEND(p) kthread_suspend(p,0)
82#define USB_THREAD_EXIT(err) kthread_exit(err)
83#endif
84
85#ifdef USB_DEBUG
86static int usb_proc_debug;
87
88SYSCTL_NODE(_hw_usb, OID_AUTO, proc, CTLFLAG_RW, 0, "USB process");
88static SYSCTL_NODE(_hw_usb, OID_AUTO, proc, CTLFLAG_RW, 0, "USB process");
89SYSCTL_INT(_hw_usb_proc, OID_AUTO, debug, CTLFLAG_RW, &usb_proc_debug, 0,
90 "Debug level");
91
92TUNABLE_INT("hw.usb.proc.debug", &usb_proc_debug);
93#endif
94
95/*------------------------------------------------------------------------*
96 * usb_process

--- 404 unchanged lines hidden ---
89SYSCTL_INT(_hw_usb_proc, OID_AUTO, debug, CTLFLAG_RW, &usb_proc_debug, 0,
90 "Debug level");
91
92TUNABLE_INT("hw.usb.proc.debug", &usb_proc_debug);
93#endif
94
95/*------------------------------------------------------------------------*
96 * usb_process

--- 404 unchanged lines hidden ---