Commit Graph

112160 Commits

Author SHA1 Message Date
phk
a8ef1fffd7 Remove vop_stddestroyvobject() 2005-02-07 09:26:39 +00:00
phk
76e354af6c Remove vop_destroyvobject() 2005-02-07 09:23:34 +00:00
ru
1b3c547165 Fix disorder. 2005-02-07 09:15:52 +00:00
glebius
81cd48e976 Sort SEE ALSO.
Submitted by:	ru
2005-02-07 08:51:34 +00:00
ru
c5d6661edd Fix bugs in the previous commit. 2005-02-07 08:44:34 +00:00
phk
76cf1e24cc Deimplement vop_destroyvobject() 2005-02-07 08:23:36 +00:00
phk
f2c8a2d0fa Add missing isa_dmatc() function.
This may or may not be correct,  Only the pcii driver would notice and
it doesn't support PC98 yet.
2005-02-07 08:19:53 +00:00
glebius
ca5b588161 English and mdoc(7) cleanup.
Submitted by:	ru
2005-02-07 08:17:51 +00:00
phk
dd587dfc53 Remove vop_destroyvobject() initialization. 2005-02-07 08:04:24 +00:00
des
ea19410046 Sort branches in correct numeric order. 2005-02-07 07:55:00 +00:00
harti
efc7c63e63 Invent a Buf_AppendRange function that appends a non-NUL-terminated string
given by a pointer to the start of the string and a pointer one behind
the end.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 07:54:23 +00:00
harti
c9d99643c7 Invent a Buf_Append function to append a NUL-terminated string
and use it thoughout the code.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-02-07 07:49:16 +00:00
phk
12a4ce963e Don't call VOP_DESTROYVOBJECT(), trust that VOP_RECLAIM() did what
was necessary.
2005-02-07 07:48:03 +00:00
phk
945c6ee435 Add a missing prefix to a struct field for consistency. 2005-02-07 07:40:39 +00:00
delphij
2cab7fda88 Revamp several Makefile nits:
- .PATH: is spelled ``.PATH: ''
	- Don't forget to use DPADD so ``make checkdpadd'' is
	  not broken.
	- LDADD should not come with + as it's empty in the
	  first place

Suggested by:	ru
2005-02-07 05:45:38 +00:00
delphij
48c3866bae Undo the VCS tag move to reduce diff hunks.
Pointed out by:	ru
2005-02-07 05:34:35 +00:00
obrien
de170ce5a3 Remove /stand when we are done with it.
Submitted by:	Ryan Sommers <ryans@gamersimpact.com>
2005-02-07 04:25:34 +00:00
njl
2faac6684a Remove handling _PSS notifies from acpi_cpu and let acpi_perf handle them. 2005-02-07 04:03:06 +00:00
iedowse
8cf324095d Add a mechanism for associating a mutex with a callout when the
callout is first initialised, using a new function callout_init_mtx().
The callout system will acquire this mutex before calling the callout
function and release it on return.

In addition, the callout system uses the mutex to avoid most of the
complications and race conditions inherent in asynchronous timer
facilities, so mutex-protected callouts have much simpler semantics.
As long as the mutex is held when invoking callout_stop() or
callout_reset(), then these functions will guarantee that the callout
will be stopped, even if softclock() had already begun to process
the callout.

Existing Giant-locked callouts will automatically pick up the new
race-free semantics. This should close a number of race conditions
in the USB code and probably other areas of the kernel too.

There should be no change in behaviour for "MP-safe" callouts; these
still need to use the techniques mentioned in timeout(9) to avoid
race conditions.
2005-02-07 02:47:33 +00:00
ticso
b3dbb534b1 Enable interrupt routing as first choice on alpha.
The alpha default handler knows how to trigger a fallback.
2005-02-07 00:43:14 +00:00
phk
9e685b5949 Allocate more space for softc. Amazing my machine survived this. 2005-02-06 22:45:12 +00:00
rwatson
2fa2cb0c9b Remove a comment from the raw IPv6 output function regarding
M_TRYWAIT allocations: M_PREPEND() now uses M_DONTWAIT.

MFC after:	3 days
2005-02-06 21:43:55 +00:00
njl
3a85760cb9 Note changes to throttling sysctls and new power_profile(8) cpufrq support. 2005-02-06 21:31:41 +00:00
njl
0d361a377c Note the cpufreq import and acpi throttling changes. 2005-02-06 21:24:50 +00:00
imp
34de3d9d90 Move the $NetBSD$ tag to the top of the file, per standard NetBSD
practice (which we seem to mostly follow in the tree).  Move the
$FreeBSD$ tag to its more proper place after all copyright and license
notices.  Add '-' to the copyright notice for Christian E. Hopps so my
copyright script picks it up.
2005-02-06 21:15:19 +00:00
njl
4cbd2da471 Hook acpi_throttle(4) up to the build. It's currently part of acpi_perf.ko
although this may change.
2005-02-06 21:13:41 +00:00
njl
4b07eec8a2 Add support for cpufreq to power_profile(8). Values for on/offline cpu
frequencies are specified with performance_cpu_freq and economy_cpu_freq.
Of course, special values LOW and HIGH are also supported.  Also, remove
old throttling support.
2005-02-06 21:12:25 +00:00
imp
afc87674ed ccs is a size_t. RAY_CCS_INDEX takes ccs and does math on it,
resulting in a size_t due to C's rules of arithmetic.  Rather than
bogusly cast the result to a uint8_t, fix the printf format specifier
to have a 'z' modifier which tells the compiler that the sizes really
do match.

It turns out that change 1.75 was incorrect to assume that this
'really' was a 8bit quantity.  It isn't.  Although the hardware
appears to limit things to < 256, it would be a bug that should be
caught by debug printf it it were.  Casting it to uint8_t would have
lost this useful information.

Aslo add 'z' to a nearby debug statement that's never compiled in.
2005-02-06 21:12:22 +00:00
njl
8aa7fbb21c Remove acpi throttling support from the acpi_cpu(4) driver now that this
is supported by acpi_throttle(4).
2005-02-06 21:10:19 +00:00
njl
001c48df2b Break out acpi throttling support into a new relative cpufreq driver,
acpi_throttle(4).
2005-02-06 21:09:51 +00:00
njl
dd84ab5b25 Add support for relative cpufreq drivers. Such drivers modulate clock
frequency as a percentage of the base rate and do not change the base
rate directly.  The cpufreq framework combines these with absolute drivers
to produce synthesized levels made of one or more settings.
2005-02-06 21:08:35 +00:00
imp
5906b27430 Move resource allocation routines from cardbus_cis.c to cardbus.c.
They have nothing at all to do with CIS parsing.

Remove some unused funce parsing: nothing used the results.

Use more of pccard_cis.h's deifnitions for the cardbus specific cis
parsing we do.  More work is needed in this area.

This reduces the size of the cardbus module by 380 bytes or so...
2005-02-06 21:03:13 +00:00
njl
8036334881 Notify the OS that we're taking over Px states in acpi_perf(4) instead of
doing it in the cpu driver.  The previous code was incorrect anyway since
this value controls Px states, not throttling as the comment said.  Since
we didn't support Px states before, there was no impact.  Also, note that
we delay the write to SMI_CMD until after booting is complete since it
sometimes triggers a change in the frequency and we want to have all
drivers ready to detect/handle this.
2005-02-06 20:12:28 +00:00
glebius
7405f75de6 Whitespace. 2005-02-06 19:24:59 +00:00
glebius
fd9973ce62 Remove comment which left after removal of ng_rcvdataq_t.
MFC after:	1 week
2005-02-06 19:20:16 +00:00
das
3617fa7cdb When running Linux binaries, set up the initial FPU state as Linux
would.

PR:	28966
2005-02-06 17:29:20 +00:00
iedowse
502533b573 Check that we have at least a 586-class CPU before calling do_cpuid().
This fixes booting on a number of 486 processors.

PR:		i386/75686
Reviewed by:	markm
MFC after:	1 week
2005-02-06 16:55:52 +00:00
phk
ffaf78263f Document NO_GPIB 2005-02-06 16:46:49 +00:00
phk
f88a65ebcb Tie libgpib into the build (unless NO_GPIB) 2005-02-06 16:45:57 +00:00
phk
8d578f6a2d Add libgpib containing the glue to get ibfoo() calls into the kernel. 2005-02-06 16:45:20 +00:00
csjp
1bea1635bf Since it is not un-common for a process's resident set size (rss)
to exceed 10 megabytes in size (especially in X), bump the max
column width from 4 bytes to 5. This will make the ps auxw output
uniform again when a process's rss exceeds 10 megs.

It should be noted that when 5 digits becomes to small, other
solutions should be explored such as displaying them in megabytes
or having ps automatically re-size column widths.

Discussed with:	gad
MFC after:	1 week
2005-02-06 16:34:49 +00:00
delphij
b180080b24 Add instructions about upgrading netcat(1). 2005-02-06 15:26:44 +00:00
phk
098f264853 Further elaborate the GPIB driver. We now support a minimal subset of
the ibfoo() API.
2005-02-06 15:22:23 +00:00
phk
784354e66e Install GPIB related includefiles (unless NO_GPIB) 2005-02-06 15:18:24 +00:00
phk
1fdfe9c5cc Add directories for GPIB support 2005-02-06 15:17:21 +00:00
delphij
7503da13ec Document NO_NETCAT. 2005-02-06 14:59:03 +00:00
delphij
59ee81a4cd Finish the import of nc(1) from OpenBSD. This includes:
- Bring IPsec support from the ports collection [1].
	- Bring -o ("once only") option from the ports
	  collection [2].
	- Adopt the Makefile framework into
	  usr.bin/nc/Makefile.
	- Add a knob to control whether to build nc(1),
	  NO_NETCAT.
	- Bump __FreeBSD_version so ports collection can
	  detect this change.

Original patchset are contributed to the ports collection by:
[1] nectar, [2] joerg.

Note: WARNS?=6 patchset spined off in this commit, in order not
to take too many files off the vendor branch.
2005-02-06 14:44:27 +00:00
glebius
4a3cc3ddbe Remove code, inherited from ipacctctl, which sets socket to non-blocking
mode, since this introduces problems on SMP.
2005-02-06 14:00:57 +00:00
des
ae26930fae Replace RELENG_4_9 (no longer supported) with RELENG_4_11. 2005-02-06 13:56:12 +00:00
phk
e5f149ca84 Since we are quite unlikely to ever face another platform which
uses the i8237 without trying to emulate the PC architecture move
the register definitions for the i8237 chip into the central include
file for the chip, except for the PC98 case which is magic.

Add new isa_dmatc() function which tells us as cheaply as possible
if the terminal count has been reached for a given channel.
2005-02-06 13:46:39 +00:00