Commit Graph

162984 Commits

Author SHA1 Message Date
yamt
b53fa282d6 fix deadlocks. 2007-11-04 13:09:32 +00:00
ghen
90fa0ca959 Restore spelling. 2007-11-04 12:54:59 +00:00
rmind
fc4b6513fa - sched_setup: use ilog2() for min_catch, which fixes the case when count
of CPU is non-power of 2.  Fixes PR/37244.
- sched_enqueue: initialize sl_lrtime, when it is zero (new thread).
  Part of PR/37245.
- Fix the mints/maxts sysctl helpers, use mstohz() for the checks.  Also,
  I meant miliseconds, not microseconds.  Found by <bjs>.
2007-11-04 12:36:01 +00:00
rmind
7c0340a739 - Migrate all threads when the state of CPU is changed to offline;
- Fix inverted logic with r_mcount in M2;
- setrunnable: perform sched_takecpu() when making the LWP runnable;
- setrunnable: l_mutex cannot be spc_mutex here;

This makes cpuctl(8) work with SCHED_M2.

OK by <ad>.
2007-11-04 11:43:07 +00:00
rmind
defb3f5b28 Support for dynamic changing of SysV message queues and semaphores limits.
Also fixes the alignment problem, which was here forever.  Thanks for <uwe>
for discussion and <martin> for testing.

Reviewed by: <tech-kern>, <gdt>
2007-11-04 11:20:34 +00:00
rmind
6364fdeba5 - Replace lockmgr with mutex;
- Use condvars instead of tsleep/wakeup;
- Replace malloc with kmem;
- Use itimespecfix/tstohz;

Reviewed by <ad>.
2007-11-04 11:10:34 +00:00
dsl
97d76a5de4 Kill netbsd32_syscall_fancy and optimise other code paths.
Current gcc manages to compile this without spilling any locals onto the
stack.
2007-11-04 11:08:54 +00:00
rmind
d63e75f696 Pick the smallest possible TCP window scaling factor that will still allow
us to scale up to sb_max.  This might fix the problems with some firewalls.

Taken from FreeBSD (silby).
OK by <dyoung>.
2007-11-04 11:04:26 +00:00
plunky
89eb056b33 remove the lower bound limitation on UUID, it is not necessary or mandated 2007-11-04 09:02:47 +00:00
xtraeme
d3f615b78d - Remove the code for softraid, it's unlikely that NetBSD will support
this because we do have a working raidframe(4).
- Miscellaneous cleanups and make the code WARNS=4 compliant.
- Removed all stuff that doesn't apply to NetBSD.
2007-11-04 08:25:04 +00:00
rtr
6dc1829962 + don't free strdup()'d ptr that was manipulated.
(i.e. free(): warning: modified (chunk-) pointer))
+ don't leak memory for ptr actually returned from strdup()
+ don't strdup() if we don't have to
+ don't break without free() if we did strdup()
+ as well as freeing h_value also free the header.
2007-11-04 06:07:52 +00:00
xtraeme
51f434b0bb Fix typo in SATA features: Perservation -> Preservation. 2007-11-04 02:34:27 +00:00
xtraeme
b0ea8c709b Catch up with latest changes. 2007-11-04 02:09:01 +00:00
xtraeme
10a0351b4a Move entry for ticket #954 to CHANGES.prev, because this has been
pulled up into the netbsd-4 branch.
2007-11-04 01:15:26 +00:00
xtraeme
64a549146f Follow plunky's changes:
- Use CFATTACH_DECL_NEW and remove struct device from the softc.
- Use aprint_*_dev().
- Use aiboost_refresh_sensors() for sme_gtredata.
2007-11-03 23:33:50 +00:00
xtraeme
4fbcc4c832 Remove sysmon_envsys_find() proto, it's defined on sysmon_envsysvar.h. 2007-11-03 23:25:20 +00:00
xtraeme
b3893f8d6a Sync with latest round of changes and improve vastly sysmon_envsys(9). 2007-11-03 23:05:56 +00:00
xtraeme
4e10a84855 - Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and
  it's used to know if the battery is currently charging or discharging.

- Require two sensors at least for SME_CLASS_BATTERY to make the low-power
  condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE.

- Simplify sme_event_check_lowpower() and make it check the required
  sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes.
  If the acadapter is not ready, trust the state returned by the battery
  device.

Based on suggestion from joerg@.
2007-11-03 23:05:21 +00:00
xtraeme
ad0f60a40b Check ci_cpuid_level before calling coretemp_register().
Fixes a panic reported (and tested) by hankenn@.
2007-11-03 21:55:23 +00:00
markd
7893af1639 Add support for Analog Devices AD1983 codec as found in Dell Optiplex 745. 2007-11-03 20:55:58 +00:00
gdt
0930138fa6 Make cfs (for coda) as part of all, conforming to the documentation
which says that "all" means "all known devices".
2007-11-03 19:33:36 +00:00
plunky
faccfc336c 'struct callout' => callout_t
don't use callout_reset()
do use callout_destroy()
2007-11-03 18:24:00 +00:00
plunky
edb74239aa switch devices to using CFATTACH_DECL_NEW()
softc no longer contains 'struct device' by default
use 'device_t' instead of 'struct device *'
use device_xxx() accessor functions
remove casting of 'xxx_softc *' & 'struct device *'
use aprint_xxx_dev() routines
2007-11-03 17:41:03 +00:00
plunky
d43f6db858 struct callout => callout_t 2007-11-03 17:39:14 +00:00
plunky
644e69cd47 "struct callout" -> callout_t
don't use callout_reset()
do use callout_destroy()
2007-11-03 17:20:17 +00:00
joerg
57eb1519a2 pkg_install update. 2007-11-03 14:26:56 +00:00
joerg
9db95c28e5 Import of pkg_install-20071103.
- reject absolute names in +CONTENT
- fix size issues with pkg_add -u and buffer handling
- print file name of failed renames in pkgdb during pkg_add -u
- remove warning when running pkg_add as non-root
- remove more traces of master/slave mode
- update URLs for new ftp.netbsd.org layout
- make warning of broken symlinks separate from warning for non-existant
  files
- FETCH_PRE_ARGS option for download-vulnerability-list
- print only base package name in FILE_NAME for pkg_info -X
- don't leak memory in Dewey, it is called a lot more often now and
  makes a difference
- just allocate in vfcexec and free, don't bother caching the exec
  buffer
- remove some FTP debugging code
- make more allocation errors in the pkgdb iteration code fatal
- glob patterns and simple patterns are checked for being version-free
  as well
- try harder to get setgid permissions correctly when extracting as
  non-root
- fix waitpid to correctly handle EINTR
2007-11-03 14:14:12 +00:00
dsl
d1041e432f Linux doesn't have a SYS_syscall system call (it is all done in libc), and
definitely doesn't have SYS___syscall.
Kill all the code - now matching i386/i386/linux_syscall.c
There is also no point using a switch statement (and it's unpredictable
jump indirect) to save a few memory copies.
2007-11-03 12:58:04 +00:00
dsl
979f6f87e5 Merge linux_syscall_fancy and linux_syscall_plain. 2007-11-03 12:21:20 +00:00
dsl
b4acb99fdd Remove now-redundant #if 2007-11-03 12:20:44 +00:00
agc
2f510db93e Recognise the word "lun" as a synonym for "target" in the configuration
file - allows us to export luns as well as targets, which should reduce
some confusion when presenting storage to external entities.
2007-11-03 09:44:06 +00:00
xtraeme
b804404ef4 bsd-family-tree 1.116. I'll be handling the updates. 2007-11-03 05:24:51 +00:00
xtraeme
e78213b924 Sync with FreeBSD 1.116, this adds information about FreeBSD 1.0.2,
DragonFlyBSD 1.10.0 and OpenBSD 4.2.
2007-11-03 05:24:05 +00:00
christos
a2dd15b5a4 add bitops.h 2007-11-02 21:26:55 +00:00
christos
2f1af36850 use the ffs32 from bitops.h which is faster 2007-11-02 21:05:06 +00:00
christos
cf1c3898fb Add ffs, fls and integer log function.
ToDo: Add a <machine/bitops.h> include for architecture optimized overrides.
2007-11-02 21:01:29 +00:00
plunky
b9a4fe408b constify hci_devname 2007-11-02 20:27:14 +00:00
plunky
812fa1c5a1 do not embed acpi device names in the sensor names
fake it in the compat code for the old envsys API
2007-11-02 19:21:29 +00:00
xtraeme
a8262a855b u_quad_t -> uint64_t as suggested by thorpej@. 2007-11-02 19:09:22 +00:00
martin
cabebfa313 Remove -or0s argument - cron should not pretend to be smarter than the
local mail admin. Should fix PR bin/37226.
2007-11-02 14:31:27 +00:00
xtraeme
2d11ff0c0c Remove "scsibus* at mfi?" from synopsis, we don't need it on NetBSD. 2007-11-02 08:59:56 +00:00
xtraeme
7509a8c524 KNF, MALLOC -> malloc, u_intXX_t -> uintXX_t. 2007-11-02 08:38:37 +00:00
xtraeme
eba879f813 Make bd_size and bv_size u_quad_t rather than size_t, for large RAID
volumes. Reported a while ago by mhitch@.
2007-11-02 08:37:06 +00:00
itohy
29f0c1e8bc Update root.cache to 2007110100 (Nov 01, 2007). 2007-11-02 03:40:52 +00:00
itohy
b3e176bbca Update to 2007110100 version 2007-11-02 03:37:23 +00:00
nisimura
72585a9257 - extend nifdv struct to have NIF nickname for rootdev.
- a small mod. for bitbang'ing practice.
- DEVTOV() band-aid.
2007-11-02 02:31:11 +00:00
dsl
22d623b6d6 Kill syscall_fancy().
With a the result of trace_is_enabled() cached in p->p_trace_enabled the
cost of 2 correctly predicted branches is insignificant.
Reorder prologue slightly, should reduce memory stalls.
2007-11-01 22:48:14 +00:00
dsl
e1149dcc98 Use one byte of p_pad1[] for p_trace_enabled where xxx_syscall_intern()
can save the result of trace_is_enabled() so that it can be efficiently
determined on every system call without having 2 separate syscall functions.
The death of syscall_fancy() looms.
2007-11-01 21:57:44 +00:00
dsl
61a8670cdb Shave cycles of syscall entry by adding __predict_false() to LWP_CACHE_CREDS() 2007-11-01 21:54:10 +00:00
dyoung
08fdf3b0de Change a few malloc(9) + memset(3) pairs to malloc(..., ...|M_ZERO). 2007-11-01 20:37:48 +00:00