Andrew Gallatin
b351299ca3
Use MIN() macro rather than ulmin() inline, and fix stray tab
...
that snuck in with my last commit.
Submitted by: green
2004-06-28 19:58:39 +00:00
Andrew Gallatin
1dad8fe1ed
Fix alpha - the use of min() on longs was loosing the high bits and
...
returning wrong answers, leading to strange values vm2->vm_{s,t,d}size.
2004-06-28 19:15:40 +00:00
Warner Losh
143a002e40
Build usbdevs.h
2004-06-28 19:06:30 +00:00
John Baldwin
a5471e4ef4
Remove the signal_caught argument from sleepq_timedwait() as it was
...
effectively always zero.
2004-06-28 18:57:06 +00:00
Warner Losh
4c0142a129
another format nit
2004-06-28 16:38:53 +00:00
Warner Losh
7f9369480d
casting for printf happiness
2004-06-28 16:30:49 +00:00
John Baldwin
bd83e879fd
- Execute all of the tasks on the taskqueue during taskqueue_free() after
...
the queue has been removed from the global taskqueue_queues list. This
removes the need for the draining queue hack.
- Allow taskqueue_run() to be called with the taskqueue mutex held. It
can still be called without the lock for API compatiblity. In that case
it will acquire the lock internally.
- Don't lock the individual queue mutex in taskqueue_find() until after the
strcmp as the global queues mutex is sufficient for the strcmp.
- Simplify taskqueue_thread_loop() now that it can hold the lock across
taskqueue_run().
Submitted by: bde (mostly)
2004-06-28 16:28:23 +00:00
Warner Losh
b5ba0c50e8
We need to build miidevs.h when we have miibus, not mii.
2004-06-28 16:22:20 +00:00
John Baldwin
469085eb86
Adjust the priorities of software interrupts. Bump SWI_CLOCK up to 5
...
and bump all of the taskqueue swi's to 6. This gives callouts higher
priority than taskqueue tasks and gives all taskqueue tasks the same
priority.
Discussed with: bde
2004-06-28 16:21:51 +00:00
John Baldwin
c086588f32
Adjust the priority of the idle threads to be the lowest possible
...
priority. This is just a comestic nit as the idle thread priorities aren't
used by the schedulers.
Reported by: bde
2004-06-28 16:19:50 +00:00
John Baldwin
3df6c4de7e
- Shorten the names for the TTY related swi interrupt handlers as the
...
'tty:' prefix is largely redundant.
- Fix the priority of the low-priority TTY SWIs that are hung off of the
softclock thread.
Submitted by: bde (2)
2004-06-28 16:17:11 +00:00
Roman Kurakin
e874bf6648
Do not m_free packet since IF_HANDOFF (called from netisr_queue) will
...
do it for us, just count it.
2004-06-28 15:32:24 +00:00
Yoshihiro Takahashi
3fdb25139d
Merged from sys/dev/sio/sio.c revision 1.444.
2004-06-28 13:28:20 +00:00
Olivier Houchard
3502f85d84
Remove unused includes.
...
Spotted out by: pjd
2004-06-28 11:35:05 +00:00
Warner Losh
dc7949f45f
bde points out that this can't do anything useful. The full patch has
...
other parts that I can't locat at the moment, so back it out until I can.
2004-06-28 05:37:22 +00:00
Scott Long
770fffe05b
Retire BUS_DMAMAP_NSEGS for sparc64
2004-06-28 04:04:43 +00:00
Scott Long
8e0bfc6b32
Switch sparc64 busdma to use a dynamically allocated segment list rather
...
than a a stack-limited list. This removes the artifical limit on s/g list
size.
cvs: ----------------------------------------------------------------------
2004-06-28 03:49:13 +00:00
Warner Losh
29b95d5a7e
Turns out that jhb didn't really like this. And nate pointed out that
...
it wasn't a good idea to have the test for NULL on only a limited
subset. Go back because I'm not sure adding NULL to all the others is
a good idea.
2004-06-28 03:40:23 +00:00
Warner Losh
ed67d9de40
rman_reserve_resource doesn't set the bushandle, so we have to do it here.
...
Badness noted by: njl
Perforce reply not read by: imp
2004-06-28 03:36:37 +00:00
Warner Losh
f465e257e2
When opening /dev/io, preserve iopl properly. Otherwise, if you open
...
/dev/io multiple times, the first close remove the privs.
2004-06-28 03:16:32 +00:00
Warner Losh
cb490814b9
remove needless blankline
2004-06-28 03:08:17 +00:00
Warner Losh
15442f461b
Use APM_UNKNOWN instead of 0xff. Use ~0U instead 0 for the number of
...
batteries. This should be -1 to match other code, but since the api
is unsigned ~0U is the same thing.
2004-06-28 02:38:20 +00:00
Warner Losh
d5ca7f4f2b
Allow dev to be NULL and assume that a device is not alive or not
...
attached.
Reviewed by: njl(?) and jhb
2004-06-28 02:24:04 +00:00
Warner Losh
6324e64978
We don't need GEN_M_CFILES. Fold it into GEN_CFILES definition and
...
adjust as necessary.
Suggested by: bde
2004-06-27 23:03:43 +00:00
Poul-Henning Kamp
e3e244bff6
Rwatson, write 100 times for tomorrow:
...
First unlock, then assign NULL to pointer.
2004-06-27 21:54:34 +00:00
Poul-Henning Kamp
52c583feb9
Make sure to kill the devstat entry for disappearing disks.
...
PR: 68074
Submitted by: Hendrik Scholz <hscholz@raisdorf.net>
2004-06-27 20:53:20 +00:00
Warner Losh
e9f58c27b9
Only build miidevs.h when we have mii in the kernel
...
Only build pccarddevs.h when we have pccard in the kernel
Only build usbdevs.h when we have usb in the kernel
Suggested by: bde
2004-06-27 20:16:56 +00:00
Alexander Langer
52b8c8cd00
- Fix style bug in Dell Bluetooth adapter (don't repeat Vendor in
...
device listing).
- Add generic "Port Replicator" entry for the USB Hubs used in
Dell port replicators.
2004-06-27 17:27:04 +00:00
Warner Losh
0661633386
Now that all the in-tree referrences to these old files are gone, go
...
ahead and remove them.
2004-06-27 16:59:15 +00:00
Warner Losh
107af8f9eb
MFp4: Last references to dev/usb/usbdevs.h converted.
2004-06-27 16:51:01 +00:00
Warner Losh
39bd8f0099
MFp4:
...
Add Intel Pro100Lan56 card.
Also integrate changes from Carlos Velasco. Only attch if we're a
network device (to filter out the serial devices). Also, increment
vpmatch if we match to conform to the pccard match function api.
2004-06-27 13:25:28 +00:00
Warner Losh
5af9f729ec
MFp4:
...
Use bus space rather than direct inb/outb. Minor style changes while
I'm here. Extremely preliminary support for siliconix ethernet cards
(but more work is required).
2004-06-27 13:10:20 +00:00
Warner Losh
5d11e83faa
MFp4:
...
The hack for setting the bus has been moved down into the cbb driver.
I've been running without this hack in my tree for so long I had
forgotten that I'd removed it :-). Please let me know if this causes
difficulty for your laptop.
2004-06-27 13:07:02 +00:00
Warner Losh
a323657048
MFp4: Set the bus handle to the bus handle of the resource, not the
...
starting value. This is more pedantically correct (since the handle
isn't always identical to the start of the resource) and also doesn't
access the innards of struct resource direct (which I forbid in my
tree). We need to do this for all resource types, not just ioport.
Reviewed by: njl
2004-06-27 13:04:19 +00:00
Pawel Jakub Dawidek
55336b83e0
Introduce a hack that will make geom_gate to work with read-only mounts.
...
Now, when trying to mount file system in read-only mode it tries to
opened a device for writting to be able to update to read-write mode
latter. Ehh.
Discussed with: phk
2004-06-27 12:56:11 +00:00
Warner Losh
d1458cfdf4
MFp4: First batch of dev/usb/usbdevs.h -> usbdevs.h changes.
2004-06-27 12:41:44 +00:00
Warner Losh
4c42b42a79
Add usbdevs.h and pccarddevs.h to the build list, as appropriate. This is needed to build as part of world or in src/sys/modules.
2004-06-27 12:33:20 +00:00
Poul-Henning Kamp
ae404e3427
Guard against us having no tty pointer.
2004-06-27 11:29:54 +00:00
Jens Schweikhardt
5383b89356
Fix a tuner problem.
...
PR: kern/66006
Submitted by: Josh Elsasser <jre@vineyard.net>
MFC after: 1 week
2004-06-27 09:59:02 +00:00
Pawel Jakub Dawidek
0a44517d3a
Those are unneeded too.
2004-06-27 09:06:10 +00:00
Pawel Jakub Dawidek
46e3b1cbe7
Add two missing includes and remove two uneeded.
...
This is quite serious fix, because even with MAC framework compiled in,
MAC entry points in those two files were simply ignored.
2004-06-27 09:03:22 +00:00
Robert Watson
7717cf07f8
Acquire the socket buffer lock when calling unp_scan() on
...
so->so_rcv.sb_mb to prevent the mbuf chain from changing during the
scan.
2004-06-27 03:29:25 +00:00
Robert Watson
91e45cce19
Annotate so_gencnt field of struct socket locked by so_global_mtx.
2004-06-27 03:23:09 +00:00
Robert Watson
a290574663
Add a new global mutex, so_global_mtx, which protects the global variables
...
so_gencnt, numopensockets, and the per-socket field so_gencnt. Annotate
this this might be better done with atomic operations.
Annotate what accept_mtx protects.
2004-06-27 03:22:15 +00:00
Robert Watson
d07af9d904
Add options NETGRAPH_FEC to hook up ng_fec.c to the LINT build.
2004-06-27 02:36:33 +00:00
Robert Watson
9d56413324
Add options NETGRAPH_EIFACE, which causes ng_eiface.c to be built into
...
the kernel, similar to NETGRAPH_IFACE for ng_iface.c. It appears to
have been omitted when added to the kernel.
2004-06-27 02:25:38 +00:00
David Schultz
17d9d0d049
Update a stale comment. The heuristic to swap processes out based on
...
the number of pages already paged out was broken in rev 1.10 and
removed in rev 1.11.
2004-06-27 01:58:12 +00:00
Robert Watson
5706472c3a
The g_up and g_down threads use a local 'mymutex' mutex to allow WITNESS
...
to warn about attempts to sleep in the I/O path. This change pushes the
definition and use of 'mymutex' behind #ifdef WITNESS to avoid the cost
in non-debugging cases. This results in a clear .22% performance win for
512 byte and 1k I/O tests on my SMP test box. Not much, but every bit
counts.
2004-06-26 23:27:42 +00:00
Julian Elischer
3ca24c284d
Having moved metadata usage to mbuf tags, remove code that supports
...
the old way of doing it.
Submitted by: Gleb Smirnoff <glebius@cell.sick.ru>
2004-06-26 22:24:16 +00:00
Alan Cox
d9dd6bfb56
Remove an unused field from the vmspace structure.
2004-06-26 19:16:35 +00:00