Commit Graph

190157 Commits

Author SHA1 Message Date
jruoho
45fcbf70be Update this too. As the page was so laconic, and as there is little to write
about the driver, add an example on howto put the system into sleep when the
lid is closed.
2010-04-25 06:24:38 +00:00
jruoho
60723a5539 Update this.
Remove the nonsense about passive cooling. As there is no known bugs, speak
about CAVEATS instead, and add few items to this section as a TODO.
2010-04-25 06:04:59 +00:00
joerg
e494dd44d8 Added entry about cdb 2010-04-25 00:57:12 +00:00
joerg
b9cf7d31ab Add the constant database reader (cdbr(3)) and writer ((cdbw(3)).
They implement a space efficent write-once database with fast access
path. Switch the services(5) database to use cdb. The size of the
database file decreases from 2.1MB disk space to 307KB. Access
performance is about the same if setservent(0) is used and about an
order of magnitude faster otherwise. services_mkdb defaults to the new
format, but can optionally create the old db(3) format as well for
statically linked legacy applications.
2010-04-25 00:54:44 +00:00
tsutsui
53fae86685 Fix typo in comments. 2010-04-25 00:35:58 +00:00
nonaka
4932d44fdd The capacity of RAM is decided according to the model. 2010-04-24 21:52:34 +00:00
nonaka
e8fe64adb4 Oops, the direction of the shift is opposite. 2010-04-24 21:51:56 +00:00
cegger
6eacba31fd ANSIfy, KNF 2010-04-24 21:34:29 +00:00
nonaka
56de8227a6 nuke sc_stable_count. 2010-04-24 21:21:28 +00:00
snj
e8ceeccf17 Another one bites the dust. 2010-04-24 20:56:19 +00:00
jruoho
73bd86de75 Define _PATH_POWER and use it. 2010-04-24 20:44:33 +00:00
dbj
1da7b01e3b switch from 4 clause to 2 clause BSD license. 2010-04-24 19:58:13 +00:00
jruoho
2e3ac7f8ad Embarrassing typos: _PI_ -> _SI_, _PB_ -> _SB_. 2010-04-24 19:51:15 +00:00
jruoho
a84baa0293 Do not use __func__ with ACPI_DEBUG_PRINT (it already adds it). 2010-04-24 19:36:14 +00:00
jruoho
80e5813055 Remove retrieving the zone name via something called "REGN".
We really should not add code that aims to satisfy some oddball firmware,
not in the generic drivers that aim to comply with the specifications.
In the long-term this is even worse than quirk tables.
2010-04-24 19:16:10 +00:00
jruoho
ac93d6907f Some purely cosmetic editing in the name of readability: clean up the softc
and remove unused variables therein, remove unused constants, use
ACPI_DEBUG_PRINT, add more detailed comments, et cetera.
2010-04-24 19:11:48 +00:00
christos
d61830c284 pass LDSTATIC to recursive makes. 2010-04-24 17:58:40 +00:00
jruoho
2203417f01 Fix a bug involving acpitz(4) accidentally attaching to the _TZ_ scope.
This in turn was caused by a bug in ACPICA, which reports the types of _SB_
and _TZ_ scopes incorrectly for its own internal reasons (utglobal.c):

  /*
   * Predefined ACPI Names (Built-in to the Interpreter)
   *
   * NOTES:
   * 1) _SB_ is defined to be a device to allow \_SB_._INI to be run
   *    during the initialization sequence.
   * 2) _TZ_ is defined to be a thermal zone in order to allow ASL code to
   *    perform a Notify() operation on it.
   */

Thanks to cegger@ for noticing the bug and testing a fix.
2010-04-24 13:42:18 +00:00
kiyohara
8491374505 Support detach by drvctl(8). 2010-04-24 11:26:15 +00:00
skrll
49c6adcedf Only post EOI once for shared interrupts. From Mark Kettenis. 2010-04-24 10:41:21 +00:00
kiyohara
a7fd2c6cc1 Support 64-bit imask for powerpc/pic. 2010-04-24 09:39:56 +00:00
lukem
97e0455fb5 add missing .debug suffix 2010-04-24 08:00:03 +00:00
lukem
6405962d8a When extracting separate debug symbols with MKDEBUG, there's no need
to leave the original file unstripped...
2010-04-24 07:57:04 +00:00
jruoho
83caa2c18b Add utility function acpi_get_node().
This retrieves a struct acpi_devnode from a handle. Since this requires
accessing the global softc, it is better to do it in one place alone. The
same goes for possible locking of the node-queue; it is better not to
publicize such a lock for generic device drivers.
2010-04-24 06:57:10 +00:00
jruoho
1b81a62b62 Now that we are able to remove references to power resources, provide a
detachment routine for acpitz(4). Add comments explaining the relationship
between power resources and active cooling. Also some improvements to code
readability.
2010-04-24 06:31:44 +00:00
dholland
e4759b9b17 Remove trailing comma in enum, per PR kern/43200.
(trailing commas in enums are allowed in C99, but not C89, and possibly
not in C++, so let's be nice to older and deviant compilers)
2010-04-24 01:47:34 +00:00
dholland
df62afc03b Edit previous HISTORY patch for style; note our 64-bit time_t change.
Bump date.
2010-04-24 01:35:50 +00:00
dholland
6763d40772 Document the options that actually exist, instead of some other
completely unrelated set. Bump date. (first time since 1993!)
2010-04-24 01:13:37 +00:00
dholland
de82ffd7cb Handle the "diedtime" field of the player log (which is not the high
scores file, the append-only log of all games) as int32_t instead of
time_t. Log files from before the 64-bit time_t change can now be read
again; however, log files from the last year of -current are hosed.
All none of you who play larn, take note...
2010-04-24 00:56:14 +00:00
christos
5f696d700e Be explicit about sizeof(*var) being preferred over sizeof(type). 2010-04-24 00:54:07 +00:00
dholland
b8a40a1a76 fflush the score file while signals are blocked to decrease the chance of
it getting corrupted.
2010-04-24 00:38:30 +00:00
joerg
9c5268bcde Fix compilation. 2010-04-23 23:05:40 +00:00
joerg
210d7a16de \\ -> \e
Drop redundant .Ic.
Add explicit empty argument for intentionally empty bracket and
parenthesis.
2010-04-23 22:04:37 +00:00
christos
6d79f6d119 Align usage of *free and *alloc and clean up the firmware read code.
This fixes two panics that occur for kernels compiled with DIAGNOSTIC and
DEBUG. From Sverre Froyen
2010-04-23 20:56:20 +00:00
joerg
323fc69705 Update build glue for pkg_install-20100421 2010-04-23 20:56:01 +00:00
joerg
8164e2ede7 Merge pkg_install-20100421 2010-04-23 20:55:31 +00:00
joerg
0e7c882236 pkg_install-20100421:
Fix an off-by-one in the check for properly sized pkgdb entries.
It rejected perfectly valid entries.

Extract dependencies of libarchive from the pkgconfig file and thereby
drop knowledge of the needed libraries.

At least some versions of HP-UX are known to not support %zu, add a
workaround. This is using the black list approach for now.

Recognize xz as compression type for pkg_create.

The first time an error is hit while fetching packages, try to reget
from the same position. This works around the server closing the
connection while fetching dependencies.

Try to detect common forms of pkgdb corruption and issue a warning in
that case.

Refactor the pkg_vulnerabilities logic to use the compression support
from libarchive. This reduces the amount zlib/bzip2 interaction to
the linkage.

Add man pages for audit-packages and download-vulnerability-list which
point to pkg_admin and notes that the scripts are obsolete.
2010-04-23 20:54:06 +00:00
joerg
22c838d332 Add MKBSDTAR, defaulting to no. It switching cpio and tar to the
libarchive based frontends.
2010-04-23 19:41:02 +00:00
rmind
5b61593723 mq_timed{send,receive}: as required by POSIX, return EINVAL on invalid
timeout and thread would have blocked, instead of ETIMEDOUT.  Change is
to abstimeout2timo(), thus also affects _lwp_park(2).

Reported by Stathis Kamperis some months ago.
2010-04-23 19:29:23 +00:00
macallan
2babff0fb0 don't try to print a bus_space_handle_t
now this at least compiles on sparc64
2010-04-23 19:27:35 +00:00
dyoung
ca088e5210 Do not try in postinstall(8) to replicate the code in etc/mtree/Makefile
that assembles /etc/mtree/NetBSD.dist.  Instead, use the Makefile's
new target, emit_dist_file, to assemble the correct NetBSD.dist.

Previously, 'postinstall -m amd64 -s $SRC_TOP' would install a
NetBSD.dist that was missing /usr/lib/i386/ et cetera.
2010-04-23 19:21:08 +00:00
rmind
13f624ca0f Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.
2010-04-23 19:18:09 +00:00
drochner
d4def06880 -build ldexp/frexp/modf locally again rather than relying on libc
reaching over, to get things into a sane state,
-do the usual namespace protection game with scalbn(f) because it
 is used internally
(more symbol renamings are necessary)

The weak_alias change for mc68881 is untested.
2010-04-23 19:17:07 +00:00
rmind
d8eaa1fed9 Remove M_IOV (missed in previous commit) and M_1394DATA types. 2010-04-23 19:09:15 +00:00
drochner
87941501db use the local versions of ldexp/frexp/modf again rather than pulling
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
jruoho
ba4f1cd0dd Forgot that the firmware may change the power state behind our back,
so actively query the state when the sysctl(8) is invoked.
2010-04-23 19:00:58 +00:00
jruoho
16bdc3ff0f Add hw.acpi.power sysctl-node. 2010-04-23 18:51:31 +00:00
dholland
4e32f54f3c + B/W for bandwidth, ATM and PIN, TBA 2010-04-23 17:48:06 +00:00
dholland
4d8dd20b9d + JBOD, NAS, OQL, OWL, RDF, SPARQL, TOS (type of service), UUID 2010-04-23 17:43:45 +00:00
dholland
a868b6fb2a minor edits, mostly capitalization.
remove FUD since it's in the main acronyms file already.
Don't use {a,b} notation for semantically unrelated expansions.
2010-04-23 17:34:48 +00:00