Commit Graph

190167 Commits

Author SHA1 Message Date
ad b445fb5178 MAXCPUS -> __arraycount 2010-04-25 11:49:04 +00:00
ad 9b61e54ab7 console spam 2010-04-25 11:23:34 +00:00
wiz 84f9b28ba3 Sort sections, make HTML-ready. 2010-04-25 10:35:07 +00:00
wiz eba2c99734 Various fixes, mostly for typos. 2010-04-25 10:32:44 +00:00
jruoho 61a52d7657 Evaluate _TTS on sleep state transitions. This is mainly to pro-actively
support some weird BIOS, which may require the evaluation. Ok jmcneill@.
2010-04-25 10:05:22 +00:00
matthias 8e71c066b9 Fix for PR#42572. I was running with this patch for several month without
any problems.
2010-04-25 09:14:38 +00:00
jruoho 0c1ea6e257 Add a note about AcpiEnterSleepStatePrep(). 2010-04-25 09:12:38 +00:00
jruoho 2875f99182 Update. 2010-04-25 07:12:10 +00:00
jruoho b3401a8da7 No need to spread bad shell script practices in manual pages... 2010-04-25 07:00:50 +00:00
jruoho e9ffb96ee3 Add also a paragraph about the platform-specific nature of the thermal
management.
2010-04-25 06:54:40 +00:00
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