Commit Graph

170399 Commits

Author SHA1 Message Date
ad dec5fb2e52 pthread_cond_timedwait: don't leak EINTR or EALREADY to the caller. 2008-05-25 23:51:31 +00:00
ad c7615c48c8 PR kern/38707 scheduler related deadlock during build.sh
Fail sched_catchlwp() if mutex_tryenter() on the remote CPU's state fails.
Seems to work around the issue described in this PR.

XXX Stealing jobs from remote CPUs could probably be moved into the idle
loop, making the locking quite a bit simpler.
2008-05-25 23:46:55 +00:00
tsutsui 99f94fd98d Some KNF and cosmetics. 2008-05-25 23:37:05 +00:00
ad 1cc9a3ae7e If converting a process/thread from SCHED_OTHER to a realtime thread,
ignore the existing priority. If no priority is specified, give threads
the minimum user RT priority.
2008-05-25 23:34:24 +00:00
ad e25a4f7edc Allow starting a new process with the specified parameters. For example:
# schedctl -C SCHED_FIFO top
2008-05-25 23:22:16 +00:00
jmcneill 9d0947ae6e PR#34477: Don't dereference ni_chan if it points to the special
``any channel'' token IEEE80211_CHAN_ANYC
2008-05-25 23:17:33 +00:00
jmcneill a6e01338bc Based on changes to nfe_attach in r1.27, wake newer chips from powerdown
mode on resume as well as at attach time.
2008-05-25 22:57:35 +00:00
ad 90035a10c9 sched_tick:
- Do timeslicing for SCHED_RR threads. At ~16Hz it's too slow but better
  than nothing. XXX

- If a SCHED_OTHER thread has hogged the CPU for 1/8s without taking a
  trip through mi_switch(), try to force a kernel preemption to give other
  threads a chance.
2008-05-25 22:04:50 +00:00
cegger 5db879ef65 add comment why NULL handlers are sufficient.
requested and ok'd by jmcneill
2008-05-25 22:03:23 +00:00
rmind 5c6ac26f4d Allow in top(1) to specify refresh time in parts of second. Minimal time is
0.5s for user, and 0.1s for superuser.

OK by <christos>.
2008-05-25 21:49:33 +00:00
dholland b135c75eab One more pair of cases; PR bin/17514 originally reported a difference in
nonexistent programs on $PATH and nonexistent programs with an absolute
pathname, so we ought to test both.

If anyone creates a program called nonexistent-program-on-path and
thereby breaks this test for themselves, they deserve it. ;-)

Also prune a no-longer-used shell variable.
2008-05-25 21:43:18 +00:00
drochner f8b26260d9 -make the list of USB child devices a (possibly sparse) array rather
than a zero-terminated list; this makes the code simpler and also
 hopefully fixes the recent "childdet" botch, see PR kern/38528
-handle the root hub specially a bit earlier, this allows to kick out
 the "submatch" functions completely which needed to second-guess
 from the port number (where "0" meant root hub")
 (we could handle the root hub specially even earlier, but as done
 now big parts of the hub emulation code are exercised regularely,
 this would bitrot otherwise)
2008-05-25 21:41:35 +00:00
christos 9f25c42945 Only match paths that start with /, otherwise mm_malloc.h ends up as a stray
dot, and we end up spewing:

    i386--netbsdelf-gcc: .: linker input file unused because linking not done
2008-05-25 21:37:02 +00:00
dholland c89216e1ce Rework and expand the test cases with reference to standards and the open
PRs on this issue. There are now 68 cases in here, of which 30 fail. Sigh.
Related PRs: bin/17514, bin/29861, bin/32282, bin/37493, bin/38584.
2008-05-25 21:33:24 +00:00
wiz ea2f84d8a6 Bump date for previous. Drop trailing whitespace. Improve text slightly. 2008-05-25 20:57:48 +00:00
cegger 30bdfd753f add power management support 2008-05-25 20:51:22 +00:00
christos 3914f24884 make this compile again from Stathis Kamperis 2008-05-25 20:47:30 +00:00
christos 6e0baf783e don't forget to fill in the emulation. 2008-05-25 20:18:33 +00:00
wiz b0ed846e48 Fix two typos. 2008-05-25 20:17:00 +00:00
wiz e430b722ea New sentence, new line. 2008-05-25 20:13:47 +00:00
wiz 62954cc42a Sort sections. Sort ERRORS. Prepare for HTML output. 2008-05-25 20:13:14 +00:00
mhitch 17dec2055b Add ciss(4) to drivers supporting bio(4) and bioctl(8). 2008-05-25 20:09:55 +00:00
wiz 723dae1494 New sentence, new line. 2008-05-25 20:08:56 +00:00
mhitch 72715a9ae8 Add bio(4) support, heavily from OpenBSD. The driver doesn't know which
physical drives belong to which logical drive, so all the physical drives
will show up for logical drive 0, and also appear for logical drives that
are rebuilding so that the rebuild state will show the physical drive
being rebuilt.  Locking for the scratch buffer is currently missing - system
quickly quits responding when I try to lock the buffer with mutex_{enter,exit}().
2008-05-25 20:08:34 +00:00
wiz 08722cf1ef Remove trailing whitespace. New sentence, new line. 2008-05-25 20:08:12 +00:00
wiz 8b96d555e0 Remove trailing whitespace. Fix typo. Sort SEE ALSO. 2008-05-25 20:07:14 +00:00
wiz 885b937f63 Prepare for HTML output. Remove dot at end of SEE ALSO. 2008-05-25 20:06:53 +00:00
wiz c21d6784dc Do not use tabs here -- they will be used literally. Use spaces instead. 2008-05-25 20:04:52 +00:00
christos 1c8ebda697 remove printf when the sensor has no statistics; requested by xtraeme. 2008-05-25 20:03:05 +00:00
wiz ade5187cdc Use Fn for function. 2008-05-25 20:00:30 +00:00
wiz 44fbe766ce Spelling fixes. Add RCS Id. New sentence, new line. Remove a CAVEAT
that could probably be added to most man4 pages.
2008-05-25 19:59:33 +00:00
wiz 488200e6ea Remove trailing whitespace and superfluous .Pp. 2008-05-25 19:48:35 +00:00
wiz 6d252519d6 Put argument directly behind macro call. Link to sched_4bsd instead
of removed scheduler(9).
2008-05-25 19:45:43 +00:00
wiz 3914d9bd61 Add RCS Id. Sort options. Fix xref.
XXX: virtdir(3) does not exist, but I do not know to which page the link
should point instead.
2008-05-25 19:42:22 +00:00
wiz 67ff3d242e Punctuation markup nit. 2008-05-25 19:38:21 +00:00
wiz 682d8063bf Remove trailing whitespace. 2008-05-25 19:38:14 +00:00
joerg c0b012d867 Update build glue for libarchive-2.5.4b. 2008-05-25 19:34:58 +00:00
joerg 2472f9f8c5 Update libarchive build glue for 2.5.4b and document the version we are
using.
2008-05-25 19:33:27 +00:00
dholland e53e59c2bc Fix this test up so (1) you can test a particular copy of sh rather than
being restricted to the #!/bin/sh used to run atf; (2) you can tell what
happened when it fails, since it does currently fail; (3) it runs all the
cases even when some of them don't work, and fails only at the end.
2008-05-25 19:25:03 +00:00
ad 5e4b324300 Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
2008-05-25 19:22:21 +00:00
joerg b26c8099ce Resolve conflicts. 2008-05-25 19:18:49 +00:00
joerg fb288ada0d Import libarchive-2.5.4b:
- bsdtar is using the hardlink resolver code from libarchive now,
  making it generate correct links for newc format
- fix a number of non-exploitable integer and buffer overflows
- SIGINFO/SIGUSR1 support for bsdtar
- bsdtar -s support
- better mtree support, it should now be able to handle the full syntax
  of NetBSD's mtree
- handle extraction of archives where hardlink and linked to entry don't
  agree on the permission (base.tgz has such entries for systat)
2008-05-25 19:14:31 +00:00
agc 2481b1e8b9 Re-enable INCLUDE_CONFIG_FILE in the GENERIC kernel config files for
i386, amd64 and usermode - it is necessary for retrieving information
on kernel configuration for running kernels - cf config -x.
2008-05-25 19:05:16 +00:00
joerg ae85e6b957 Random underdocumented CPU facts:
AMD K8 and newer will trap when enabling the NX support outside PAE
paging mode. The AMD64 wake code was restoring the MSR EFER to switch to
Long Mode and naturally didn't have paging enabled at that point.
While this works fine with Intel CPUs, it resulted in an immediate
reboot with AMD processors.

Fixed by a joint brain storming session of jmcneill@, cegger@ and
myself, based on some input from the hardware developers.  This fixes
PR 38587.
2008-05-25 17:20:29 +00:00
ad 49ec182c8c Fix error in previous. 2008-05-25 17:11:13 +00:00
ad 2bcb8bf1c4 PR lib/38741 priority inversion in libpthread breaks apps that use
SCHED_FIFO threads

- Change condvar sync so that we never take the condvar's spinlock without
  first holding the caller-provided mutex. Previously, the spinlock was only
  taken without the mutex in an error path, but it was enough to trigger the
  problem described in the PR.

- Even with this change, applications calling pthread_cond_signal/broadcast
  without holding the interlocking mutex are still subject to the problem
  described in the PR. POSIX discourages this saying that it leads to
  undefined scheduling behaviour, which seems good enough for the time being.

- Elsewhere, use a hash of mutexes instead of per-object spinlocks to
  synchronize entry/exit from sleep queues.

- Simplify how sleep queues are maintained.
2008-05-25 17:05:28 +00:00
christos 8254177f62 mention awk. 2008-05-25 16:33:32 +00:00
christos f7e42af424 PR/38737: cheusov at tut dot by: Don't build the character class table
starting at 0, because will always be treated as the empty string DuH!
2008-05-25 16:28:25 +00:00
kiyohara 4b5fb67334 Integrated to powerpc-mkbootimage. Obsoleted. 2008-05-25 16:27:56 +00:00
chs 56f22e2d1f include uvm/uvm_extern.h for trunc_page() on sparc
(where the page size isn't a compile-time constant).
2008-05-25 16:21:54 +00:00