| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Approved by: cperciva (mentor)
|
|
|
|
| |
PR: usb/147196
|
|
|
|
| |
PR: usb/146907
|
|
|
|
|
|
| |
USB 2.0 standard, though some USB devices use it anyway.
Submitted by: Hans Petter Selasky
|
|
|
|
| |
Found by: Garrett Cooper
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Submitted by: jhb@
|
|
|
|
|
|
| |
This fixes QEMU crash due to unsupported level-triggered HPET interrupts.
Reported by: kib@
|
|
|
|
|
| |
Sponsored by: Juniper Networks
MFC after: 1 week
|
|
|
|
|
|
|
| |
tweak more TCP/stack parameters.
Sponsored by: Juniper Networks
MFC after: 1 week
|
|
|
|
|
| |
Suggested by: jhb
MFC after: 3 days
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Reported by: kib@
|
|
|
|
|
|
| |
ia64, same as amd64 has ACPI and always has APIC.
Submitted by: jhb@
|
|
|
|
| |
There appeared such legacy thing as APM, that somehow breaking RTC.
|
|
|
|
|
|
| |
This should massively reduce the buildworld time on amd64.
Pointy hat to: me
|
|
|
|
|
| |
PR: bin/147572
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
negative numbers.
Suggested by: ache
Approved by: kib (mentor)
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reported by: brucec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- ANSIfy prototypes.
- Remove unneeded whitespace.
- Add const keyword to function where it can be used.
|
|
|
|
|
|
|
|
|
| |
Fix some casting errors.
PR: 142384
Submitted by: giffunip at tutopia dot com
Obtained from: NetBSD
MFC after: 3 weeks
|
|
|
|
|
|
| |
PR: 143558
Submitted by: eitanadlerlist at gmail dot com
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PR: 145232
Submitted by: gcooper
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE.
PR: docs/147983
Submitted by: pluknet
MFC after: 1 week
|
|
|
|
|
|
|
| |
the "aux" value in libdialog is really an opaque pointer, but libdialog
stores it as a long for historical reasons.
Approved by: cperciva (mentor)
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
error out early.
Found by: clang static analyzer
|
|
|
|
| |
Found by: clang static analyzer
|
|
|
|
| |
Found by: clang static analyzer
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
| |
PR: i386/147929
MFC after: 3 days
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
* 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@
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
PR: 145447
Submitted by: u at netbeisser dot de
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 145648
Submitted by: alexbestms at wwu dot de and spam at rm-rf dot kiev dot ua
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
PR: 147337
Submitted by: cyberleo at cyberleo dot net
MFC after: 1 week
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|