Minor spelling correction.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257906 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove dead link


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257908 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo: site_t -> size_t

Obtained From:	DragonflyBSD (1ac92c8c857a15dc010924c5f066da404e568640)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257909 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't enable interrupts before we call sched_throw(). Interrupts
are expected to be disabled by virtue of md_spinlock_count=1.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
pkill - Optimize pgrep -F

 Ask for a specific process instead of pulling down all processes when
 -F <pidfile> is specified.  This is much much faster.

 Obtained from:	DragonflyBSD


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in r257515.

Submitted by:	az


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some CAM locks polishing:
 - Fix LOR and possible lock recursion when handling high-power commands.
Introduce new lock to protect left power quota and list of frozen devices.
 - Correct locking around xpt periph creation.
 - Remove seems never used XPT_FLAG_OPEN xpt periph flag.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo.

Submitted by:	feld@
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Save one more register read per command by not reading rqstoutrp register
every time.  The purpose of that register is unlikely output queue overflow
detection, so read it only when its last known (and probably stale now)
value signals overflow.

This reduces CPU load and lock congestion and rises bottleneck in CTL
while doing target mode via two 8Gbps ports from 100K to 120K IOPS.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in "iscsictl -v".

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Add a test case for would-be assignments that are not due to quoting.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257920 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document the RB_FOREACH_FROM() and RB_FOREACH_REVERSE_FROM() macros.

These are largely syntactic sugar. However, they improve code
readability where an RB_FOREACH() or RB_FOREACH_REVERSE()
traversal has been interrupted and must be resumed. Performance
is improved by avoiding unnecessary traversal from the head node.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
RB_FOREACH_[REVERSE_]FROM() do not require the head pointer. Reword.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- Add myself as port committer and my mentor's relationship.
- Add myself to calendar.freebsd.

Approved:   wg (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257923 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Apparently with "const uint32_t foo = 0x60;" gcc doesn't consider 'foo'
to be a constant integer suitable for use in a case label, so use #defines.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257924 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Prepare for 64-bit. Iow, use Elf_*hdr instead of the 32-bit ones.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257928 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Properly quote alias output from command -v.

An alias should be printed by command -v as a command line; therefore, make
the alias definition suitable for re-input to the shell.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Some more registers access optimizations:
 - Process ATIO queue only if interrupt status tells so;
 - Do not update queue out pointers after each processed command, do it
only once at the end of the loop.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257930 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use relaxed (write-only) memory barriers when writing some of queue index
registers (for now on ISP2400+).  We never read those registers back and
AFAIK their semantics does not require any immediate reaction on write.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257932 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
x86 platforms that use an IOAPIC route the legacy timer interrupt (IRQ0) to
pin 2 of the IOAPIC.

Add an 'Interrupt Source Override' entry to the MADT to describe this
and start asserting interrupts on pin 2 in the 8254 device model.

Submitted by:	Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@257933 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f