Introduce new device flag G_MIRROR_DEVICE_FLAG_TASTING. It should
protect geom from destroying while it is tasting.

PR:		kern/154860
Reviewed by:	pjd
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@235599 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Prevent removing of the last active component from a mirror.

PR:		kern/154860
Reviewed by:	pjd
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@235600 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't use ino_t in dumprestore protocol definition.

Since ino_t size is about to change to 64-bits, replace ino_t used in
dump protocol definition with 32-bit dump_ino_t to preserve backward
compatibility.  At some point, it may be necessary to use spare fields
in struct in order to fully support 64-bit inode numbers.

Sponsored by:	Google Summer of Code 2011


git-svn-id: svn://svn.freebsd.org/base/head@235601 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't cast inode number or file size down to long or unsigned.

Since ino_t size is about to change to 64-bits, casts to long would
truncate 64-bit numbers on 32-bit archs.

Sponsored by:	Google Summer of Code 2011


git-svn-id: svn://svn.freebsd.org/base/head@235602 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Do not double-reference the found vm object in cdev_pager_lookup().
vm_pager_object_lookup() already referenced the object.

Note that there is no in-tree consumers of cdev_pager_lookup(). The
only known user of the function is i915 gem driver, which is not yet
imported. This should make the KPI change minor.

Submitted by:	avg
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@235603 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing include.


git-svn-id: svn://svn.freebsd.org/base/head@235607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add architecture dependent code to support NAND Framework on Marvell SoCs.

Obtained from: Semihalf
Supported by:  FreeBSD Foundation, Juniper Networks


git-svn-id: svn://svn.freebsd.org/base/head@235609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add missing `continue' statement at end of case.

Found by:  Kevin Lo (kevlo@)
MFC after: 1 week


git-svn-id: svn://svn.freebsd.org/base/head@235610 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add localbus driver for Marvell's platforms.

Obtained from: Semihalf
Supported by:  FreeBSD Foundation, Juniper Networks


git-svn-id: svn://svn.freebsd.org/base/head@235611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for our own DTrace scripts and those from the DTraceToolkit
to the build system.  FreeBSD written scripts are stored in
src/share and the toolkit scripts are brought from the cddl directory
into a working tree via install.

MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@235613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add a DTrace script to show the frequency and latency of NFS client calls.

Submitted by:	rwatson


git-svn-id: svn://svn.freebsd.org/base/head@235614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update comment to document that the vnode free-list mutex needs to be
held when updating mnt_activevnodelist and mnt_activevnodelistsize.


git-svn-id: svn://svn.freebsd.org/base/head@235619 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add SMP/i386 suspend/resume support.
Most part is merged from amd64.

- i386/acpica/acpi_wakecode.S
Replaced with amd64 code (from realmode to paging enabling code).

- i386/acpica/acpi_wakeup.c
Replaced with amd64 code (except for wakeup_pagetables stuff).

- i386/include/pcb.h
- i386/i386/genassym.c
Added PCB new members (CR0, CR2, CR4, DS, ED, FS, SS, GDT, IDT, LDT
and TR) needed for suspend/resume, not for context switch.

- i386/i386/swtch.s
Added suspendctx() and resumectx().
Note that savectx() was not changed and used for suspending (while
amd64 code uses it).
BSP and AP execute the same sequence, suspendctx(), acpi_wakecode()
and resumectx() for suspend/resume (in case of UP system also).

- i386/i386/apic_vector.s
Added cpususpend().

- i386/i386/mp_machdep.c
- i386/include/smp.h
Added cpususpend_handler().

- i386/include/apicvar.h
- kern/subr_smp.c
- sys/smp.h
Added IPI_SUSPEND and suspend_cpus().

- i386/i386/initcpu.c
- i386/i386/machdep.c
- i386/include/md_var.h
- pc98/pc98/machdep.c
Moved initializecpu() declarations to md_var.h.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@235622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bring in a subset of gcc fixes that were back ported to
the GCC 4.1 branch and are available under GPLv2.

2007-11-07  Eric Botcazou  <ebotcazou@libertysurf.fr>

	PR rtl-optimization/33822
	* rtl.h (REG_OFFSET): Fix comment.
	* var-tracking.c (INT_MEM_OFFSET): New macro.
	(var_mem_set): Use it.
	(var_mem_delete_and_set): Likewise.
	(var_mem_delete): Likewise.
	(vt_get_decl_and_offset): Likewise.
	(offset_valid_for_tracked_p): New predicate.
	(count_uses): Do not track locations with invalid offsets.
	(add_uses): Likewise.
	(add_stores): Likewise.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129972

2007-11-16  Richard Guenther  <rguenther@suse.de>
	PR middle-end/34030
	* fold-const.c (fold_binary): Use correct types for folding
	1 << X & Y to Y >> X & 1.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130242

2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>

	PR rtl-optimization/31944
	* cse.c (remove_pseudo_from_table): New function.
	(merge_equiv_classes): Use above function to remove pseudo-registers.
	(invalidate): Likewise
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131524

2008-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

        Backport:
	2007-11-07  Kenneth Zadeck <zadeck@naturalbridge.com>

	PR middle-end/33826
	* ipa-pure-const (static_execute): Added code to keep recursive
	functions from being marked as pure or const.
	* ipa-utils (searchc): Fixed comment.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131807

2008-02-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	Backport:
	2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>

	PR middle-end/25445
	* varasm.c (default_binds_local_p_1): Consult flag_whole_program
	if we are compiling with -fPIC.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132061

2008-02-04  Richard Guenther  <rguenther@suse.de>

	PR middle-end/33631
	* expr.c (count_type_elements): Give for unions instead of
	guessing.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132101

2008-02-14  Alan Modra  <amodra@bigpond.net.au>

	PR target/34393
	* config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
	to a reg.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132309

2008-03-25  Richard Guenther  <rguenther@suse.de>

	Backport from mainline:
	2008-02-12  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35163
	* fold-const.c (fold_widened_comparison): Use get_unwidened in
	value-preserving mode.  Disallow final truncation.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133509

2008-11-30  Eric Botcazou  <ebotcazou@adacore.com>

	PR target/38287
	* config/sparc/sparc.md (divsi3 expander): Remove constraints.
	(divsi3_sp32): Add new alternative with 'K' for operand #2.
	(cmp_sdiv_cc_set): Factor common string.
	(udivsi3_sp32): Add new alternative with 'K' for operand #2.
	Add TARGET_V9 case.
	(cmp_udiv_cc_set): Factor common string.
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142298

Reviewed by:	mm
Approved by:	jhb (mentor)
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@235623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a case typo.

Pointed out by: jlh@


git-svn-id: svn://svn.freebsd.org/base/head@235628 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix and update battery status bits according to linux driver

Reviewed by:	ambrisko@
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@235634 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Decode new battery status indications.

Requires r235634

Reviewed by:	ambrisko@
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@235635 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix bootstrapping from FreeBSD 7.x: we also need to build ar.


git-svn-id: svn://svn.freebsd.org/base/head@235637 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't depend on getline being on the build machine. That's
not the case for FreeBSD 7.x machines.


git-svn-id: svn://svn.freebsd.org/base/head@235638 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revert the previous commit on wakecode address verbose printing.
This broke PAE kernel building.


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