summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessarily inflammatory commentary.randi2010-06-221-3/+0
| | | | Approved by: cperciva (mentor)
* Add a mass storage quirk.thompsa2010-06-222-0/+5
| | | | PR: usb/147196
* Add new device id.thompsa2010-06-221-0/+1
| | | | PR: usb/146907
* Add support for LOW speed BULK transfers. This mode is not recommended by thethompsa2010-06-224-10/+4
| | | | | | USB 2.0 standard, though some USB devices use it anyway. Submitted by: Hans Petter Selasky
* Add missing opt_compat.h dependency.thompsa2010-06-221-1/+1
| | | | Found by: Garrett Cooper
* Add "legacy route" support to HPET driver. When enabled, this mode makesmav2010-06-223-66/+106
| | | | | | | | | | | | HPET to steal IRQ0 from i8254 and IRQ8 from RTC timers. It can be suitable for HPETs without FSB interrupts support, as it gives them two unshared IRQs. It allows them to provide one per-CPU event timer on dual-CPU system, that should be suitable for further tickless kernels. To enable it, such lines may be added to /boot/loader.conf: hint.atrtc.0.clock=0 hint.attimer.0.clock=0 hint.hpet.0.legacy_route=1
* Some style fixes for r209371.mav2010-06-224-5/+9
| | | | Submitted by: jhb@
* Do not set level-triggered interrupt mode if we are not going to use it.mav2010-06-221-0/+1
| | | | | | This fixes QEMU crash due to unsupported level-triggered HPET interrupts. Reported by: kib@
* Add TCP scalability testing wrapper scripts for tcpp.rwatson2010-06-222-0/+92
| | | | | Sponsored by: Juniper Networks MFC after: 1 week
* Revised tuning advice for tcpp benchmarking: do it in loader.conf, andrwatson2010-06-221-2/+10
| | | | | | | tweak more TCP/stack parameters. Sponsored by: Juniper Networks MFC after: 1 week
* udf_vnops: cosmetic followup to r208671 - better looking codeavg2010-06-221-1/+1
| | | | | Suggested by: jhb MFC after: 3 days
* readelf.1: remove duplicate -u/--unwind option descriptionavg2010-06-221-8/+0
| | | | MFC after: 2 weeks
* Improve fsck robustness for SU+J cases:delphij2010-06-222-60/+117
| | | | | | | | | | - Use err/errx only when the case is really fatal. For other cases, fall back to full fsck instead of quiting fsck. - Plug a memory leak. - Avoid divide by zero when printing summary. - Output "FILE SYSTEM IS MARKED CLEAN" when a successful journal recovering is done. - When -f is specified, do full fsck instead of journal recovery.
* Introduce vm_page_next() and vm_page_prev(), and use them inalc2010-06-213-13/+46
| | | | | | | | | vm_pageout_clean(). When iterating over a range of pages, these functions can be cheaper than vm_page_lookup() because their implementation takes advantage of the vm_object's memq being ordered. Reviewed by: kib@ MFC after: 3 weeks
* "time lock" is no longer a spin-lock since r209371.mav2010-06-211-1/+1
| | | | Reported by: kib@
* Fix ia64 build broken by r209371.mav2010-06-211-1/+1
| | | | | | ia64, same as amd64 has ACPI and always has APIC. Submitted by: jhb@
* Fix i386 LINT build broken by r209371.mav2010-06-211-0/+3
| | | | There appeared such legacy thing as APM, that somehow breaking RTC.
* Don't build Clang libs during lib32 build.ed2010-06-211-1/+1
| | | | | | This should massively reduce the buildworld time on amd64. Pointy hat to: me
* Syntax, commas and stuff. Comments from jhb.sbruno2010-06-211-2/+2
| | | | | PR: bin/147572 MFC after: 2 weeks
* Check for overflow before it occurs. Also add check forae2010-06-211-2/+2
| | | | | | | negative numbers. Suggested by: ache Approved by: kib (mentor)
* Use ISO C99 integer types in sys/kern where possible.ed2010-06-2124-93/+94
| | | | | | There are only about 100 occurences of the BSD-specific u_int*_t datatypes in sys/kern. The ISO C99 integer types are used here more often.
* Do not report a stack garbage as the old value for debug.ncores sysctl.kib2010-06-211-1/+2
| | | | Reported by: brucec
* Remove G_TYPE_ASCLBA type and replace it with G_TYPE_STRING in gpart.ae2010-06-215-177/+210
| | | | | | | | | | | | | | | Move code that converts params from humanized numbers to sectors count to subr.c and adjust comment. Add post-processing for "size" and "start offset" params in gpart, now they are properly converted to sectors count with known sector size that can be greater that 512 bytes. Also replace "unsigned long long" type to "off_t" for unify code since it used for medium size in libgeom(3) and DIOCGMEDIASIZE ioctl. PR: bin/146277 Reviewed by: marcel (previous version) Approved by: kib (mentor) MFC after: 1 month
* Implement new event timers infrastructure. It provides unified APIs formav2010-06-2019-495/+1662
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | writing event timer drivers, for choosing best possible drivers by machine independent code and for operating them to supply kernel with hardclock(), statclock() and profclock() events in unified fashion on various hardware. Infrastructure provides support for both per-CPU (independent for every CPU core) and global timers in periodic and one-shot modes. MI management code at this moment uses only periodic mode, but one-shot mode use planned for later, as part of tickless kernel project. For this moment infrastructure used on i386 and amd64 architectures. Other archs are welcome to follow, while their current operation should not be affected. This patch updates existing drivers (i8254, RTC and LAPIC) for the new order, and adds event timers support into the HPET driver. These drivers have different capabilities: LAPIC - per-CPU timer, supports periodic and one-shot operation, may freeze in C3 state, calibrated on first use, so may be not exactly precise. HPET - depending on hardware can work as per-CPU or global, supports periodic and one-shot operation, usually provides several event timers. i8254 - global, limited to periodic mode, because same hardware used also as time counter. RTC - global, supports only periodic mode, set of frequencies in Hz limited by powers of 2. Depending on hardware capabilities, drivers preferred in following orders, either LAPIC, HPETs, i8254, RTC or HPETs, LAPIC, i8254, RTC. User may explicitly specify wanted timers via loader tunables or sysctls: kern.eventtimer.timer1 and kern.eventtimer.timer2. If requested driver is unavailable or unoperational, system will try to replace it. If no more timers available or "NONE" specified for second, system will operate using only one timer, multiplying it's frequency by few times and uing respective dividers to honor hz, stathz and profhz values, set during initial setup.
* Temporarily disable instruction relocation while setting up the kernel'snwhitehorn2010-06-201-1/+6
| | | | | | | | IBAT entry in early boot in order to prevent possible faults from races between the instruction cache and the MMU. PR: powerpc/148003 MFC after: 3 days
* Ensure that VOP_ACCESSX is called with exclusively locked vnode forkib2010-06-201-0/+33
| | | | | | | | | | | | the kernel compiled with QUOTA option. ufs_accessx() upgrades the vdp vnode lock from shared to exclusive to assign the dquot structure to the vnode, and ufs_delete_denied() is called when tvp is locked. Since upgrade drops shared lock when non-blocked upgrade failed, LOR is there. Reported and tested by: Dmitry Pryanishnikov <lynx.ripe gmail com> Tested by: pho PR: kern/147890 MFC after: 1 week
* Small style fixes:ed2010-06-201-32/+16
| | | | | | - ANSIfy prototypes. - Remove unneeded whitespace. - Add const keyword to function where it can be used.
* Fix some style(9), although there's a lot more issues here.brian2010-06-205-24/+34
| | | | | | | | | Fix some casting errors. PR: 142384 Submitted by: giffunip at tutopia dot com Obtained from: NetBSD MFC after: 3 weeks
* Recognise the -l switch with pkill - list kill command(s) used.brian2010-06-202-8/+16
| | | | | | PR: 143558 Submitted by: eitanadlerlist at gmail dot com MFC after: 3 weeks
* Add a -t switch for masking output that's above or below certain thresholds.brian2010-06-202-3/+28
| | | | | | | | | This switch makes it a lot easier to locate problem areas when a process is threatening to consume all of your disk space. PR: 144192 Submitted by: gk MFC after: 3 weeks
* Add a missing prototypebrian2010-06-201-0/+1
| | | | | | PR: 145232 Submitted by: gcooper MFC after: 1 week
* Merge from English r198040: add C message catalogue entries for newermaxim2010-06-201-0/+10
| | | | | | | | errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE. PR: docs/147983 Submitted by: pluknet MFC after: 1 week
* Clean up item_add and remove -fno-strict-aliasing from CFLAGS. Note thatrandi2010-06-204-5/+5
| | | | | | | the "aux" value in libdialog is really an opaque pointer, but libdialog stores it as a long for historical reasons. Approved by: cperciva (mentor)
* Unbreak platforms with char unsigned by default. Oddly enough, GCC isn'tmarcel2010-06-201-2/+6
| | | | | satisfied with a simple cast to int in the check against EOF, so the fix is a bit involved by actually having to go through a temporary variable.
* mdoc nitpicking for gsched.8uqs2010-06-191-3/+3
| | | | | | | | | | - remove stray argument [1] - remove stray whitespace - use canonical wording for the HISTORY section PR: docs/147119 [1] Submitted by: Alexander Best <alexbestms@wwu.de> [1] MFC after: 1 week
* Initialise the "trials" variable to zero earlier in case we unexpectedlygavin2010-06-191-1/+1
| | | | | | error out early. Found by: clang static analyzer
* Remove dead assignments, we overwrite the variable almost immediately.gavin2010-06-192-3/+0
| | | | Found by: clang static analyzer
* Variable 'getmap' is unused.gavin2010-06-191-2/+2
| | | | Found by: clang static analyzer
* Report transport type in XPT_PATH_INQ.mav2010-06-191-0/+4
| | | | MFC after: 3 days
* Report transport type in XPT_PATH_INQ.mav2010-06-191-0/+4
| | | | | PR: i386/147929 MFC after: 3 days
* Core i5, same as previously Core2Duo, found to not set P-state for singlemav2010-06-191-6/+2
| | | | | | core lower then set on other cores. Do not try to test P-states on attach on SMP systems. It is hopeless now and will just pollute verbose logs. If needed, check still can be forced via loader tunable.
* Extend the AR71XX watchdog debugging and data.adrian2010-06-191-1/+38
| | | | | | | | | * Add some per-device sysctl entries which record the watchdog state - whether it is armed; whether the last reboot was due to the watchdog. * Add a per-device sysctl debug flag to enable logging watchdog arming/ disarming. Reviewed by: gonzo@
* sh: Fix compilation with -DNO_HISTORY.jilles2010-06-191-0/+1
| | | | | | | | | | | The LINENO code uses snprintf() and relied on "myhistedit.h" to pull in the necessary <stdio.h>. Compiling with -DNO_HISTORY disables all editing and history support and allows linking without -ledit -ltermcap. This may be useful for embedded systems. MFC after: 2 weeks
* Remove an unnecessary cat.brian2010-06-191-1/+1
| | | | | | PR: 145447 Submitted by: u at netbeisser dot de MFC after: 1 week
* Remove vestiges of 'slip'.brian2010-06-193-9/+2
| | | | | | PR: 145648 Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua MFC after: 1 week
* Oops! Add " / hz" missed in r209328. Assume interrupt rate hz/2, not 1/2.mav2010-06-191-1/+1
|
* Add a missing linefeedbrian2010-06-191-1/+1
| | | | | | PR: 147337 Submitted by: cyberleo at cyberleo dot net MFC after: 1 week
* While we indeed can't precisely measure time spent in C1, we can considermav2010-06-191-3/+7
| | | | | | measured interval as upper bound. It should be more precise then just assuming hz/2. For idle CPU it should be quite precise, for busy - not worse then before.
* - Rename the internal for loop iterator to "_i" to avoid potential shadowing oflstewart2010-06-191-7/+11
| | | | | | | | | | | | | | | | external variables named "i". The "_" prefix is reserved for infrastructure type code and is therefore not expected to be used by normal code likely to call DPCPU_SUM(). [1] - Change DPCPU_SUM to return the sum rather than calculate and assign it internally. Usage is now: "sum = DPCPU_SUM(dpcpu_var, member_to_sum);" [2] - Fix some style nits. [3] Sponsored by: FreeBSD Foundation Suggested by: bde [3], mdf [1], kib [1,2], pjd [1,3] Reviewed by: kib MFC after: 1 week (instead of r209119)
* Catch up with the page and page queues locking changes.alc2010-06-181-8/+8
|
OpenPOWER on IntegriCloud