Commit Graph

170682 Commits

Author SHA1 Message Date
jmcneill
976a12aad4 Fix a mis-tabbed brace, no functional change. 2008-06-04 21:37:03 +00:00
matt
9bf92c7f8f #include <stdbool.h> if not kernel or standalone 2008-06-04 17:54:17 +00:00
ad
5d66fa5745 - Switch off the map evcnts by default.
- SAVE_HINT() doesn't need to be atomic.
2008-06-04 17:47:40 +00:00
ad
e89db9644e When setting DONE on the buffer, assert that there are no waiters in
biowait().
2008-06-04 17:46:21 +00:00
drochner
54ccefda99 Reduce polling of the keyboard controller status by a factor of 1000.
While on real hardware hardware a poll cycle takes time in the
microsecond order of magnitude, a "legacy-free" system which emulates
the KBC in BIOS code takes milliseconds -- I'm seeing a multi-minute
delay in booting where the KBC is probed. So poll less and use delay()
to compensate so that the total wait time stays about the same.
2008-06-04 16:29:14 +00:00
ad
7a34cb95f0 Replace the global vm_page hash with a per vm_object rbtree.
Proposed on tech-kern@.
2008-06-04 15:06:04 +00:00
ad
61464a76be Forgot to add this yesterday. 2008-06-04 14:59:39 +00:00
ad
f260c01a7f Add /usr/include/sys/rb.h. 2008-06-04 14:31:53 +00:00
ad
13c7f6ff40 Move lib/libkern/rb.h to sys/rb.h, so it can be used by kernel header
files.
2008-06-04 14:31:15 +00:00
ad
4f702c0ce1 udv_fault: pmap_update before releasing locks. 2008-06-04 13:35:24 +00:00
ad
83828e8d22 listq -> listq.queue 2008-06-04 13:23:30 +00:00
ginsbach
2624ccf202 The hi_IN.ISCII-dev locales shouldn't be installed as there is no support
for this code set in LC_CTYPE nor iconv(3).
2008-06-04 13:19:31 +00:00
ad
75e0baf4da Make it build. 2008-06-04 13:10:06 +00:00
ad
7671b6093f Revert unintentional change. 2008-06-04 13:08:30 +00:00
rmind
af4e8e9ea7 Check the result of allocation in the cases where size is passed by user. 2008-06-04 13:02:41 +00:00
ad
e7fbdbbaf0 vmstat -s: report cpu pagealloc hits/misses. 2008-06-04 12:47:47 +00:00
ad
cbbf514e2c - vm_page: put listq, pageq into a union alongside a LIST_ENTRY, so we can
use both types of list.

- Make page coloring and idle zero state per-CPU.

- Maintain per-CPU page freelists. When freeing, put pages onto the local
  CPU's lists and the global lists. When allocating, prefer to take pages
  from the local CPU. If none are available take from the global list as
  done now. Proposed on tech-kern@.
2008-06-04 12:45:28 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
nonaka
0591571b21 Added missing splx() at ohci_resume(). 2008-06-04 12:38:58 +00:00
ad
621389e8b2 Fix broken enable test; fixes random coredumps. 2008-06-04 12:26:20 +00:00
ad
65b594ff61 Make sure the PAX flags are copied/zeroed correctly. 2008-06-04 12:16:06 +00:00
joerg
8473aea40f Add back break to fix PCI bridge traversal as reported by various users. 2008-06-04 12:14:02 +00:00
ad
6b01ae766f - Tidy up the locking a bit.
- Use atomics/kmem_alloc/pool_cache.
2008-06-04 11:33:19 +00:00
ad
fd089e08cf Remove ref to uvm.page_idle_zero 2008-06-04 11:30:25 +00:00
ad
b7a93f5dfd Note that DIAGNOSTIC/LOCKDEBUG applies. 2008-06-04 11:24:36 +00:00
ad
8dd7771d61 Disable the wakeup assertion for the time being because the tty code
triggers it.
2008-06-04 11:22:55 +00:00
haad
199eb21945 Add manual pages for prop_array_util to list.
OK by jnemeth@.
2008-06-04 08:30:26 +00:00
wiz
46c5658a32 Sort SEE ALSO. 2008-06-04 07:46:48 +00:00
yamt
d00ec4b31c yamt-pf42-base3 2008-06-04 03:51:14 +00:00
jmcneill
b131a63ada If we boot with RB_MD1, register a NULL pmf handler for APs so we can
still suspend.
2008-06-03 23:05:01 +00:00
ad
cee82bbafa Don't use proc specificdata for the PAX stuff. Speeds up mmap() and others. 2008-06-03 22:15:14 +00:00
ad
d191ae6b1b Don't use proc specificdata. Speeds up mmap() and others. 2008-06-03 22:14:24 +00:00
ad
da4bdc8954 uvm_mmap: don't lock the map unless we need to. 2008-06-03 21:48:27 +00:00
dyoung
d46fe4da98 Remove one more struct afswtch.af_getprefix() remnant. 2008-06-03 21:03:27 +00:00
dyoung
31a7bcb871 Remove remnants of struct afswtch.af_getprefix(). 2008-06-03 21:02:49 +00:00
dyoung
e71b1ed16e Make the atomic macros compile: do not discard 'volatile' qualification
from argument `p'.  Use `b' instead of `bit'.
2008-06-03 20:35:01 +00:00
joerg
e0e78e766f Make the logic for _BBN overrides less aggressive. When mpacpi_get_bbn
failed and the current goal is to enumerate all PCI bus and this is the
first PCI host bridge, just assume it is bus 0 and ignore the error.
When querying the bus number, assume that the system paniced earlier if
an error happened and this is not the first/only PCI host bridge and
override the BBN as 0 in that case.
2008-06-03 20:34:15 +00:00
haad
9b09c481c8 Add prop_array_util functions to proplib. This code is copied/changed
prop_dictionary_util.

From manual page

The prop_array_util family of functions are provided to make getting and
setting values in arrays more convenient in some applications.

OK by mjf@ and freza@.
2008-06-03 20:18:24 +00:00
ad
53c5ea5da9 Don't bother unmapping the ELF header unless it overlaps the first load
section.
2008-06-03 19:32:32 +00:00
ad
e54e98d8cc xprintf returns void. 2008-06-03 19:22:37 +00:00
ad
9795e155ec __progname isn't const. 2008-06-03 19:22:07 +00:00
ad
51a52ea260 i386 doesn't need ld.so.conf at this time. 2008-06-03 18:49:59 +00:00
ad
1b74c9b77c - Fold libm387 into libm.
- Leave libm387 as an empty shell.
2008-06-03 18:47:28 +00:00
ad
36b49f84f3 Try read() on ld.so.conf. If the file is small, it avoids stat+mmap+munmap. 2008-06-03 18:36:59 +00:00
ad
1b23b70818 vfs_cache:
- Don't use goto in critical paths, it can confuse the compiler.
- Sprinkle some branch hints.
- Make namecache stats per-CPU and collate once per second.
- Use vtryget().
2008-06-03 15:50:22 +00:00
joerg
bd8a810c44 Before 1.46, the EC driver would try to send a command again to the EC
after a timeout. This was removed, but the loops remained, so fix them
up as well.
2008-06-03 15:12:39 +00:00
jmcneill
fc993c6a36 Reintroduce acpibat_refresh, only have it refresh battery status (not info,
we will get notified for changes there). Use SME_POLL_ONLY so applications
that use GTREDATA don't cause trouble, and don't use SME_INIT_REFRESH as it
appears to be completely broken.
2008-06-03 15:02:31 +00:00
jmcneill
b9f9379e74 Add SME_POLL_ONLY flag, which informs sme to only refresh the sensor when
it is polled (and not from GTREDATA).
2008-06-03 15:00:57 +00:00
ad
457a3f8942 vtryget: try to get an initial reference to a vnode without taking its
interlock. Only works if v_usecount is already non-zero, which is nearly
always true for busy files like libc.so or ld_elf.so.
2008-06-03 14:54:12 +00:00
rafal
e437f08c73 Don't init sc_lock for each socket, since it's shared; caught by LOCKDEBUG. 2008-06-03 13:45:22 +00:00