Commit Graph

8515 Commits

Author SHA1 Message Date
maxim
a53812d462 o Trim EoL whitespaces. 2012-03-19 19:25:22 +00:00
davidxu
aea001420f Add implementation note about when a condition variable can be destroyed. 2012-03-16 05:05:37 +00:00
mav
6305fd59a4 Some formatting for r232919.
Submitted by:	pluknet
2012-03-13 10:54:14 +00:00
mav
5b5fc4e585 Add kern.eventtimer.activetick tunable/sysctl, specifying whether each
hardclock() tick should be run on every active CPU, or on only one.

On my tests, avoiding extra interrupts because of this on 8-CPU Core i7
system with HZ=10000 saves about 2% of performance. At this moment option
implemented only for global timers, as reprogramming per-CPU timers is
too expensive now to be compensated by this benefit, especially since we
still have to regularly run hardclock() on at least one active CPU to
update system uptime. For global timer it is quite trivial: timer runs
always, but we just skip IPIs to other CPUs when possible.

Option is enabled by default now, keeping previous behavior, as periodic
hardclock() calls are still used at least to implement setitimer(2) with
ITIMER_VIRTUAL and ITIMER_PROF arguments. But since default schedulers don't
depend on it since r232917, we are much more free to experiment with it.

MFC after:	1 month
2012-03-13 10:21:08 +00:00
emaste
3304bedba6 Remove undesired sysctl(3) xref
Submitted by:	bde
2012-03-09 15:25:27 +00:00
emaste
486b631cb3 Correct markup, use proper reference for sysctl(3)
Submitted by:	brueffer@
2012-03-08 15:27:29 +00:00
hselasky
fd7603d60b Add new USB device IDs.
PR:		usb/165815
MFC after:	1 week
2012-03-08 07:22:41 +00:00
emaste
0533ed0221 Inbound TCP-MD5 digest validation is now supported 2012-03-08 01:37:01 +00:00
pluknet
e68655dbd3 Move struct if_data basic description to a more suitable place, and remove
a bit of .Bx 4.4 history.

MFC after:	1 week
2012-03-07 14:53:53 +00:00
maxim
770a90e569 o Sync LOCK_PROFILING manpage with the current code: remove
unexistent sysctls, add new ones.

Reviewed by:	gjb
Sponsored by:	Nginx, Inc.
2012-03-07 14:50:14 +00:00
pluknet
244addf1dd Reflect that if_output changed to take a struct route as its fourth
argument (r191148).

MFC after:	1 week
2012-03-07 11:29:43 +00:00
pluknet
0d910635b1 Update ifa_rtrequest() description after post-4.4BSD change made in r85074.
3rd argument of ifa->ifa_rtrequest is now ``rt_addrinfo *'' instead of
``sockaddr *''. While here, un-document RTM_RESOLVE cmd argument for
ifa_rtrequest() that became a stub after separating L2 tables in r186119.

MFC after:	1 week
2012-03-07 09:42:19 +00:00
bz
606ca3f4b7 Provide wbwd(4), a driver for the watchdog timer found on various
Winbond Super I/O chips.

With minor efforts it should be possible the extend the driver to support
further chips/revisions available from Winbond.  In the simplest case
only new IDs need to be added, while different chipsets might require
their own function to enter extended function mode, etc.

Sponsored by:	Sandvine Incorporated ULC (in 2011)
Reviewed by:	emaste, brueffer
MFC after:	2 weeks
2012-03-06 18:44:52 +00:00
pluknet
46c04cbc53 Remove if_watchdog remnants after if_timer/if_watchdog removal in r199975.
This part was missed in r199992.

MFC after:	1 week
2012-03-06 12:20:37 +00:00
pluknet
73e2a901f8 Fix a typo: use lower case in "A Shorthand".
Noted by:	maxim
2012-03-06 09:57:50 +00:00
pluknet
9ea338986f Kill EoL whitespaces. 2012-03-06 09:40:34 +00:00
pluknet
cc08870c86 The missing part of r232588 that documents ifaddr_byindex() itself.
MFC after:	1 week
2012-03-06 09:04:53 +00:00
pluknet
bc68c66587 - ifnet_addrs has gone and replaced by ifaddr_byindex(), as per r83130
- access to the AF_LINK address through if_addrhead is deprecated (r128315)

MFC after:	1 week
2012-03-06 08:59:42 +00:00
pluknet
b3b4b54213 Actually bump date, sigh. 2012-03-05 20:04:28 +00:00
jhb
b9d94deee6 Fix three instances of a missing word.
Submitted by:	bjk
2012-03-05 19:38:59 +00:00
pluknet
66ccd6631c Fix typo. Bump .Dd for the previous change. 2012-03-05 17:38:44 +00:00
glebius
2a173e7bbc Fix ng_ipfw(4) cookie number in example.
Pointed out by:		"Jacco van Buuren" <jaccovanbuuren gmail.com>
2012-03-05 06:12:15 +00:00
jhb
44d3dd58d4 Document pci_find_extcap() and pci_find_htcap(). 2012-03-04 18:55:33 +00:00
eadler
01c3c73609 Bump date as modified the man page
Submitted by:	gjb
2012-03-04 16:59:45 +00:00
eadler
2cc463152b ehci tunables are only available when kernel is compiled with USB_DEBUG
PR:		docs/163646
Reported by:	Momchil Ivanov <momchil@xaxo.eu>
Submitted by:	Benjamin Kaduk <kaduk@mit.edu>
Approved by:	cperciva
MFC after:	1 week
2012-03-04 16:26:49 +00:00
eadler
71b454b896 PR: docs/158813
Submitted by:	Ben Kaduk <kaduk@mit.edu>
Approved by:	bcr
MFC after:	1 week
2012-03-04 15:22:03 +00:00
jhb
c070890383 Expand and reorganize the pci(9) manpage a bit:
- Document the following routines: pci_alloc_msi(), pci_alloc_msix(),
  pci_find_cap(), pci_get_max_read_req(), pci_get_vpd_ident(),
  pci_get_vpd_readonly(), pci_msi_count(), pci_msix_count(),
  pci_pending_msix(), pci_release_msi(),  pci_remap_msix(), and
  pci_set_max_read_req().
- Group the functions into five sub-sections: raw configuration access,
  locating devices, device information, device configuration, and
  message signaled interrupts.
- Discourage use of pci_disable_io() and pci_enable_io() in device drivers.
  The PCI bus driver handles this automatically as resources are activated.

MFC after:	2 weeks
2012-03-03 14:23:54 +00:00
pluknet
f90febf947 Reflect the renaming of ifmaof_ifpforaddr() to if_findmulti() in r148652.
MFC after:	1 week
2012-03-02 09:52:42 +00:00
pluknet
93f2183184 ifp->if_ioctl() has moved to u_long cmd in r36735.
Somehow that change had not reached here together with ifioctl().

MFC after:	1 week
2012-03-02 09:30:54 +00:00
mav
11e7605a3d Fix names of some Marvell SATA chips. It looks like chips with proprietary
interface supported by mvs(4) are 88SX, while AHCI-like chips are 88SE.

PR:		kern/165271
Submitted by:	Jia-Shiun Li <jiashiun@gmail.com>
MFC after:	1 week
2012-03-02 08:49:07 +00:00
jhb
20f70f7f55 Update the documentation on pci_get/set_powerstate(). These methods are
not ACPI-specific at all, but deal with PCI power states.  Also,
pci_set_powerstate() fails with EOPNOTSUPP if a request is made that the
underlying device does not support rather than falling back to somehow
setting D0.
2012-03-01 20:36:50 +00:00
jhb
e03043889a Sort function prototypes. 2012-03-01 20:32:02 +00:00
jhb
87af6ebd2e Add pci_save_state() and pci_restore_state() wrappers around
pci_cfg_save() and pci_cfg_restore() for device drivers to use when
saving and restoring state (e.g. to handle device-specific resets).

Reviewed by:	imp
MFC after:	2 weeks
2012-03-01 20:20:55 +00:00
jhb
0b4e8b5716 Update for adjusted types for boundary arguments in 232356. 2012-03-01 20:19:21 +00:00
jh
806e8c5872 Since r199137 namei() returns EINVAL for DELETE and RENAME operations if
the last component of the pathname is ".".

Reviewed by:	kib
MFC after:	1 week
2012-03-01 18:17:45 +00:00
mav
d844e42d76 Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4).
Cards are expensive and so rare, so leave the driver as module.

Submitted by:	Ruslan Bukin <br@bsdpad.com>
MFC after:	2 weeks
2012-03-01 13:10:18 +00:00
pluknet
3e4d13da1e Changes in ifaddr refcounting: ifa_refcnt IFAREF/IFAFREE macros
moved to ifa_ref()/ifa_free() refcounting functions.

MFC after:	1 week
2012-03-01 12:52:14 +00:00
pluknet
103c25dec9 Refine r232333 [1] and put note about ifnet refcount caller responsibility.
Spotted by:	gavin [1]
MFC after:	1 week
2012-03-01 12:30:57 +00:00
pluknet
9a76a42270 Reflect that ifa_ifwithnet() gained ignore_ptp argument.
MFC after:	1 week
2012-03-01 12:16:00 +00:00
pluknet
a540a62cbb Document ifunit_ref function.
MFC after:	1 week
2012-03-01 12:03:52 +00:00
pluknet
63c65b9bc7 Document ifnet refcount.
MFC after:	1 week
2012-03-01 11:03:39 +00:00
dim
4b408c2add Regenerate src.conf(5) after r232322.
MFC after:	2 weeks
2012-02-29 23:06:48 +00:00
thompsa
5fb3a72857 Correct the description for CTLFLAG_TUN and CTLFLAG_RDTUN, the declaring of a
system tunable has never been implemented. This flag is only used by sysctl(8)
to provide a helpful error message.

Discussed with:	dwhite, kan
2012-02-29 22:41:40 +00:00
dim
64be263fa2 Regenerate src.conf(5) after r231530 (and to correct a little screwup
with the WITH_CLANG_EXTRAS fragment I added).
2012-02-29 19:18:32 +00:00
kevlo
714a708b6a Mention mos(4) 2012-02-28 15:47:39 +00:00
kevlo
d2840a94e2 Add support for the MCS7832
Obtained from:	OpenBSD
2012-02-28 15:45:42 +00:00
kevlo
a2a1f5f62f Fix typos 2012-02-28 15:07:05 +00:00
gavin
0104789850 Correct capitalization of "Hz" in user-visible text (manpages, printf(),
etc).

MFC after:	3 days
2012-02-28 13:19:34 +00:00
mm
733cf6f55f mdoc(7) stype - start new sentences on new line
MFC after:	1 week
2012-02-28 07:35:07 +00:00
gjb
fe4276cc14 Fix a few rendering nits in rc.conf(5) with regards to mentioning
jail_parallel_enable.
2012-02-28 03:11:02 +00:00