Commit Graph

170558 Commits

Author SHA1 Message Date
ad
788aa3a3b0 Give it a private X86_MAXPROCS def. XXX 2008-05-28 12:48:21 +00:00
ad
032b92980a /usr/include/atomic.h, for Solaris source compat. 2008-05-28 12:28:12 +00:00
njoly
7cdbbcf80d Add LINUX_TMPFS_SUPER_MAGIC, and map it to our tmpfs.
This makes sem_open/sem_unlink (POSIX named semaphores) work under
NPTL emulation.
2008-05-28 12:01:10 +00:00
ad
0c8e56007e Remove X86_MAXPROCS. There is still a 32-cpu limit, but it's now using
the MI constants.
2008-05-28 11:50:01 +00:00
ad
1d6047e0d2 Another use of X86_MAXPROCS. 2008-05-28 11:45:15 +00:00
ad
3e01024d3f Kill use of X86_MAXPROCS. 2008-05-28 11:44:18 +00:00
ad
e74e1f24d8 Another latency test. This one uses realtime threads, _lwp_park, and
measures how long preemption takes (kernel preemption if the arch
implements it).
2008-05-28 11:34:07 +00:00
lukem
bb2d78e387 add LIBLDAR_R (for completeness) 2008-05-28 11:23:26 +00:00
hauke
9dd4931827 Add LOCKDEBUG option, commented out, so that people know it's there. 2008-05-28 10:20:02 +00:00
wiz
d493f8ddf4 Add FreeBSD 7.0 for libgssapi man pages. Noted by joerg. 2008-05-28 07:14:12 +00:00
he
43d9fe982a Add boot_com0 and boot_vga, to mirror recent changes. 2008-05-28 06:32:44 +00:00
dyoung
d4ff34dc53 In tap_clone_destroy(), don't treat a pointer to the tap(4) softc
like it is a device_t.

In tap_clone_creator(), set cf_fstate to FSTATE_FOUND instead of
_NOTFOUND to avoid a panic in config_detach() on a DIAGNOSTIC
kernel.  XXX I'm not sure that that is the right fix.

These changes should put a stop to the crash described in kern/38759.
2008-05-28 06:28:12 +00:00
bjs
c693c2b2dd Add work-in-progress of NetBSD-specific code. I will be committing a lot
more changes shortly (as soon as I work out the mmap offset insanity).
2008-05-28 04:52:48 +00:00
bjs
91174b68e0 Rework drm_atomic.h for correctness and readability:
- Use macros where appropriate.
 - Remove code for other operating systems -- we don't need it.
 - In atomic_read/atomic_set, cast to volatile.
 - Misc. cleanup.
2008-05-28 04:51:20 +00:00
snj
fa7a018146 Fix a spelling error. 2008-05-28 00:31:10 +00:00
snj
86320a034c Fix a typo. 2008-05-28 00:29:12 +00:00
snj
4497f1f884 Remove trailing whitespace, correct a spelling error, and fix an xref. 2008-05-28 00:19:52 +00:00
ad
5831c8ac63 Pull in sys/evcnt.h. 2008-05-27 22:05:50 +00:00
hubertf
e81830fe24 Fix code reference after hashinit(9) was moved from
kern_subr.c to kern_hash.c some time ago.

Noted by Michael Spacek.
2008-05-27 22:03:52 +00:00
dyoung
a238dc9749 Straggler from last commit: drop unused radiotap flags field, set
the __packed attribute on the radiotap headers.
2008-05-27 21:42:08 +00:00
dyoung
233108fde8 Initialize the channel info in the tx/rx radiotap headers in
ipw_newstate(), instead of reinitializing every time a packet is
sent or received.  Drop the unused radiotap 'flags' field.
2008-05-27 21:41:01 +00:00
ad
f79b59f700 #ifdef strikes again 2008-05-27 21:36:03 +00:00
dyoung
ea0d0ed51e Distinguish O2 Micro bridges from generic bridges. PCI Parity
Error reporting seems to be broken on O2 Micro bridges, so do not
activate it.  Should fix kern/38698, reported by Andreas Gustafsson.
2008-05-27 21:32:47 +00:00
dyoung
71f2cf5b71 Make this compile again: don't use USBDEVNAME().
While I'm here, use device_t, device_private(), aprint_error_dev().
2008-05-27 21:24:15 +00:00
jnemeth
8c15a5312a note new siisata(4) driver 2008-05-27 20:49:48 +00:00
drochner
0936812690 kill USB_DO_ATTACH 2008-05-27 20:46:16 +00:00
drochner
1f3341612f minor unifdef and cleanup, no functional change 2008-05-27 20:44:28 +00:00
dyoung
25b52967a3 For all controllers but type SK_YUKON_FE, set the jumbo frames
capability, ETHERCAP_JUMBO_MTU.  Rely on ether_ioctl() to enforce
the MTU range implied by the ethernet capabilities.  Should fix
kern/38748.

While I'm here, use some standard ethernet constants instead of
msk-specific constants.
2008-05-27 20:14:28 +00:00
dyoung
975e7d5e74 Enlarge embedded symbol table. 2008-05-27 19:27:17 +00:00
dyoung
fef8b3ebea #include <sys/device.h> for device_t definition. 2008-05-27 19:26:27 +00:00
ad
4c634c7155 Sigh. The previous change did bad things to MySQL sysbench. Continue stealing
jobs from sched_nextlwp, but also do it in the idle loop. In sched_nextlwp
use trylock, in the idle LWP try harder.
2008-05-27 19:05:52 +00:00
wrstuden
d04226d378 Document the wrstuden-revivesa branch. 2008-05-27 18:52:43 +00:00
nakayama
94692eb6bc Change my mail address to NetBSD's one. 2008-05-27 18:01:34 +00:00
ad
208df81d99 Move lwp_exit_switchaway() into kern_synch.c. Instead of always switching
to the idle loop, pick a new LWP from the run queue.
2008-05-27 17:51:17 +00:00
ad
aa7e99c693 Replace a couple of tsleep calls with cv_wait. 2008-05-27 17:50:03 +00:00
ad
234470c22e tsleep -> kpause 2008-05-27 17:49:07 +00:00
ad
ec32985f61 Use pool_cache. 2008-05-27 17:48:27 +00:00
ad
3c98ba17d9 Don't expose config_pending. 2008-05-27 17:47:37 +00:00
ad
f90f3a01ea Use kmem_alloc/free. 2008-05-27 17:42:14 +00:00
explorer
d4ffc0c2dd print out the xen hypervisor's version number when attaching 2008-05-27 17:01:07 +00:00
ad
81fa379a0b PR kern/38707 scheduler related deadlock during build.sh
- Fix performance regression inroduced by the workaround by making job
  stealing a lot simpler: if the local run queue is empty, let the CPU enter
  the idle loop. In the idle loop, try to steal a job from another CPU's run
  queue if we are idle. If we succeed, re-enter mi_switch() immediatley to
  dispatch the job.

- When stealing jobs, consider a remote CPU to have one less job in its
  queue if it's currently in the idle loop. It will dispatch the job soon,
  so there's no point sloshing it about.

- Introduce a few event counters to monitor what's happening with the run
  queues.

- Revert the idle CPU bitmap change. It's pointless considering NUMA.
2008-05-27 14:48:52 +00:00
hamajima
78c41e4bd3 - convert inline asm umull to C
- add "-march=armv4 -mtune=arm9" to CPUFLAGS

Relevant mailing list threads:
http://mail-index.netbsd.org/source-changes/2008/05/25/msg195537.html
http://mail-index.netbsd.org/port-arm/2008/05/26/msg000228.html
2008-05-27 14:31:36 +00:00
ad
8642ae8daf cpu_lwp_fork: set tf_trapno=T_ASTFLT in case the LWP gets an aston() before
returning to userspace for the first time.
2008-05-27 14:25:11 +00:00
ad
f985e88f2b Start profiling clock on new process before setting it running, in case
there is a preemption.
2008-05-27 14:18:51 +00:00
ad
b18c28f549 PR kern/38763 "hanging in tty" bugfix breaks the build for vax (and
probably others)
2008-05-27 14:13:41 +00:00
lukem
55f43121a4 Add USE_FORT?=yes. 2008-05-27 08:58:26 +00:00
dholland
cc6b2d9854 Urgh, part of another patch for PR 35619 (which is for after the freeze)
snuck in by accident, corrupting an error message. Fix.
2008-05-27 01:42:40 +00:00
dholland
7edb76a2e6 Update whatis.db atomically, by dumping out into whatis.db.new and
renaming. PR 35619 from uwe@.
2008-05-27 01:25:46 +00:00
dholland
b63851a8b9 Distinguish "this file failed" from "any file failed", to make cp -v
output behave itself. PR bin/37018 from Dieter Roelants.

(I used a slightly different patch to make sure "any file failed"
didn't get lost in the shuffle, and renamed the variables in the name
of greater clarity.)
2008-05-26 22:45:33 +00:00
dholland
c9db1d914b Add missing cases for the ! operator. Also add eval-variants of a couple
others, that had been missing, and correct a typo'd expected result.
2008-05-26 22:06:10 +00:00