Commit Graph

168482 Commits

Author SHA1 Message Date
adrianp
3304ed5765 OpenSSH 5.0 is out 2008-04-03 12:44:56 +00:00
nisimura
5d92871af1 revise SDRAM SPD detect attempt for EUMB I2C debugging purpose. 2008-04-03 11:24:02 +00:00
jmmv
53501bc8e0 Improvements and fixes from J. Vicente Carrasco sent by private mail. 2008-04-03 10:47:27 +00:00
nakayama
b1253edf64 Revise cpu_need_resched and cpu_signotify, then make them like x86's ones.
This can avoid sending IPI to myself.
2008-04-03 10:34:45 +00:00
jmcneill
8843b0cbbb Disable machdep.acpi_beep_on_reset by default. 2008-04-03 10:20:18 +00:00
dyoung
b674c86ad6 Fix one of two bugs introduced by the descriptor handling changes
(rev 1.125): correct the check for fd_getsock() failure in
gre_socreate().

The second bug is more complicated to fix.  Since rev 1.125,
gre_reconf() is using the file descriptor table of the current
process instead of the process 0's (the kernel's).
2008-04-03 07:19:32 +00:00
dyoung
0228252053 Cosmetic: use curlwp everywhere that it is appropriate, instead of
using a temporary variable.  Remove superflous curly braces.  Move
an assignment that shuts up a "variable may be used uninitialized"
warning.
2008-04-03 07:12:16 +00:00
scottr
776597a46f Factor out ADB spin-wait timeout loop, and use it for synchronous
operations to access the PRAM RTC, etc. in the IIsi and Cuda cases.
Thanks to Martin Husemann for pointing out the flaw.

This is a slightly more thorough workaround for the issue Martin found
in PR 37611, as it affected more than just adb_read_date_time().
2008-04-03 05:03:23 +00:00
christos
012e0e0132 make this compile with MPDEBUG. parts missing 2008-04-03 01:02:23 +00:00
manu
1c3bd4b930 fix Linux build 2008-04-02 19:02:50 +00:00
hauke
b1374c3956 Fall-out from splitting device_t and softc for the dp8390 softc. 2008-04-02 18:36:58 +00:00
ad
2940b88b72 sched_tick: only case a preemption if the current thread is hogging the CPU,
or if we are idle and should look for new work (matters with per-CPU queues).
2008-04-02 17:40:15 +00:00
ad
42bc09155e yield: don't drop priority to zero. libpthread doesn't make much use of
this any more but applications do and it now pessimizes benchmarks.
2008-04-02 17:38:16 +00:00
xtraeme
c4f793a0d0 Add another address, from Dennis Den Brok. 2008-04-02 16:00:34 +00:00
xtraeme
73f8e0ee49 Mention envstat(8). 2008-04-02 15:09:04 +00:00
xtraeme
317b4b3c04 Remove empty and useless BUGS section. 2008-04-02 15:04:02 +00:00
xtraeme
0ee95516ea Add MLINKS for the sysmon_envsys_* functions. 2008-04-02 14:49:31 +00:00
xtraeme
9b9479e9c3 Add different configuration lines for all known adresses at
which this driver might attach.
2008-04-02 14:35:55 +00:00
xtraeme
979262d0fe Mention pic16lc(4). 2008-04-02 14:29:45 +00:00
xtraeme
e984f5b1da Mention cac(4). 2008-04-02 14:17:40 +00:00
xtraeme
42d9037c3c Mention adt7463c(4) and thinkpad(4) even if the manpages don't exist.
This is to have a reference about which drivers are using the envsys
framework.
2008-04-02 14:15:27 +00:00
xtraeme
0c3e66d283 Add itesio1 entry to SYNOPSYS. The address/data port also can be
at 0x4e/0x4f.
2008-04-02 14:07:21 +00:00
ad
5e136e1e5d Add more error reporting to AP startup. 2008-04-02 11:52:54 +00:00
xtraeme
6dcb9dd40c Initialize and destroy the callout in sme_events_init() and
sme_events_destroy() respectively. And don't stop twice the callout
when calling sysmon_envsys_unregister().
2008-04-02 11:19:22 +00:00
xtraeme
247cd610f6 Revert rev 1.126-1.128. The original code was correct and rmind and I
didn't look correctly at them.
2008-04-02 10:53:23 +00:00
nisimura
82460723d2 add a prelimary implementation of MPC8245 EUMB I2C. 2008-04-02 06:20:53 +00:00
dyoung
55e31e2b6d Update set list for isv(4). 2008-04-02 01:54:34 +00:00
dyoung
d3627477d7 Certain misguided people have complained, NetBSD only runs rare or
"retro" computers, but NetBSD also runs a growing number of rare
and retro add-on cards.  With this patch, NetBSD supports the IDEC
Supervision/16, a black&white image capture board for the 16-bit
ISA bus.  Approximate date of manufacture: 1991.  Total instances
known to be in use throughout the world: one.

Coming soon; isvctl(8), the utility program for capturing 8-bit,
512x480 images at speeds of up to 6 frames per second.
2008-04-02 01:34:36 +00:00
cegger
3faf8c6fd7 convert to CFATTACH_DECL_NEW
OK matt and mrg
2008-04-01 23:44:48 +00:00
cegger
00823ac29b regen. 2008-04-01 23:17:32 +00:00
cegger
a40879a973 add XenSource and its virtual product - only found on Xen HVM guests 2008-04-01 23:16:16 +00:00
cegger
86a848845f fix spelling: regenate -> regenerate
OK cube
2008-04-01 22:12:38 +00:00
xtraeme
dcf3ee7d3b When copying l_name and l_wmesg use KI_LNAMELEN and KI_WMESGLEN
respectively, so that we don't care if l_name/wmesg is longer
than kl_name/wmesg and the KASSERTs added in previous can go away.
2008-04-01 21:05:37 +00:00
xtraeme
92d36024a5 Fix fallout from device_t/softc split to mpu(4):
always pass the mpu_softc to mpu_intr(). Found by Takeshi Nakayama.
2008-04-01 20:44:29 +00:00
drochner
76ad1614e9 remove useless passing of the lwp from the KERNEL_LOCK() ABI
(not the API; this would be easy as well)
agreed (a while ago) by ad
2008-04-01 19:49:31 +00:00
drochner
17cfc674b7 g/c unused softc members 2008-04-01 19:25:53 +00:00
drochner
7cc98087b6 everyone else assumes that defining "_XOPEN_SOURCE" means XPG4.2,
so remove comparisions against the numerical values "3" or "4"
2008-04-01 19:23:28 +00:00
drochner
ba327d4301 make this compile again
(it isn't built by default, but anyway)
2008-04-01 19:20:43 +00:00
drochner
b5e4e50433 remove stale declarations 2008-04-01 19:19:33 +00:00
xtraeme
3189c49560 Fix previous: use the length of l->l_foo not kl->l_foo and add
two KASSERTs to check for max lenght limits before copying.

As suggested by rmind@.
2008-04-01 18:06:06 +00:00
xtraeme
03c6a6aa65 fill_lwp: when copying l_wmesg and l_name, use the size of the string
not of the variable.

Found and ok by rmind@.
2008-04-01 17:39:58 +00:00
xtraeme
18b1d12d0e Also fix a memleak when the event is already in dictionary
and has been updated.
2008-04-01 17:01:34 +00:00
rmind
4b02b68c59 sme_event_register: fix a memory leaks in two error paths. 2008-04-01 16:48:18 +00:00
xtraeme
e3c537a961 Fix previous commit, this Guillemot model was supported already
by rum(4).
2008-04-01 15:26:11 +00:00
xtraeme
8530f5047d Fix fallout from device_t/softc split to mpu(4):
always pass the mpu_softc to mpu_intr(). Found by Takeshi Nakayama.
2008-04-01 13:35:39 +00:00
xtraeme
5ee4eba88d Introduce per-device locking/synchronization and maintain only a
global mutex for the linked list of devices and the global proplib
dictionary.

This has improved locking contention a lot when multiple devices with
multiple monitoring events are running:

New:

 0.30      35      0.33 sme_global_mtx         sysmonioctl_envsys+28b
 0.10      10      0.11 00000000cd97feac       sysmon_envsys_acquire+4c
 0.08       6      0.09 00000000cd97feac       sme_update_dictionary+24f
 0.01       4      0.01 00000000cd97feac       sme_events_worker+2f
 0.01      10      0.01 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.00       1      0.00 00000000cd97fe2c       sysmon_envsys_release+3b
28.38      94      9.16 sme_global_mtx         sysmonioctl_envsys+28b
 4.54      74      1.47 00000000cd97fe2c       sysmon_envsys_acquire+4c
 0.06       3      0.02 00000000cd97fe2c       sysmon_envsys_release+3b
 0.03       1      0.01 00000000cd97fe2c       sme_events_worker+2f
 1.40      19      0.45 00000000cd97bee4       sysmon_envsys_acquire+4c

Old:

 4.25     313      4.74 sme_mtx                <all>
 3.12     185      3.49 sme_mtx                sme_events_worker+21
 1.12     128      1.25 sme_mtx                sysmonioctl_envsys+29b
34.75    1423     59.52 sme_mtx                <all>
22.08     477     37.82 sme_mtx                sysmonioctl_envsys+29b
12.67     946     21.70 sme_mtx                sme_events_worker+21
2008-04-01 12:25:30 +00:00
martin
e9c68c5df0 Add timeout to busy loops waiting for ADB command completition.
Turns the hard hang in PR port-mac68k/37611 into a warning.
2008-04-01 12:02:52 +00:00
ad
138df53bd3 If MPDEBUG and waiting for the CPU to start, dump cpu_trace[] as it changes. 2008-04-01 11:09:58 +00:00
ad
520b46da7e Use multiple kthreads to process config_interrupts tasks. Proposed on
tech-kern.
2008-04-01 10:37:42 +00:00
mrg
1ed6b6fc06 if genfb_pci can't map regs, don't panic() just return. 2008-04-01 01:11:55 +00:00