kern_shutdown.c (155383) | kern_shutdown.c (157628) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 155383 2006-02-06 10:12:00Z jeff $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 157628 2006-04-10 10:03:41Z pjd $"); |
39 40#include "opt_kdb.h" 41#include "opt_mac.h" 42#include "opt_panic.h" 43#include "opt_show_busybufs.h" 44#include "opt_sched.h" 45 46#include <sys/param.h> --- 16 unchanged lines hidden (view full) --- 63#include <sys/smp.h> /* smp_active */ 64#include <sys/sysctl.h> 65#include <sys/sysproto.h> 66 67#include <machine/cpu.h> 68#include <machine/pcb.h> 69#include <machine/smp.h> 70 | 39 40#include "opt_kdb.h" 41#include "opt_mac.h" 42#include "opt_panic.h" 43#include "opt_show_busybufs.h" 44#include "opt_sched.h" 45 46#include <sys/param.h> --- 16 unchanged lines hidden (view full) --- 63#include <sys/smp.h> /* smp_active */ 64#include <sys/sysctl.h> 65#include <sys/sysproto.h> 66 67#include <machine/cpu.h> 68#include <machine/pcb.h> 69#include <machine/smp.h> 70 |
71#include <vm/vm.h> 72#include <vm/vm_object.h> 73#include <vm/vm_page.h> 74#include <vm/vm_pager.h> 75#include <vm/swap_pager.h> 76 |
|
71#include <sys/signalvar.h> 72 73#ifndef PANIC_REBOOT_WAIT_TIME 74#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 75#endif 76 77/* 78 * Note that stdarg.h and the ANSI style va_start macro is used for both --- 300 unchanged lines hidden (view full) --- 379 if (!first_buf_printf) 380 printf("Final sync complete\n"); 381 /* 382 * Unmount filesystems 383 */ 384 if (panicstr == 0) 385 vfs_unmountall(); 386 } | 77#include <sys/signalvar.h> 78 79#ifndef PANIC_REBOOT_WAIT_TIME 80#define PANIC_REBOOT_WAIT_TIME 15 /* default to 15 seconds */ 81#endif 82 83/* 84 * Note that stdarg.h and the ANSI style va_start macro is used for both --- 300 unchanged lines hidden (view full) --- 385 if (!first_buf_printf) 386 printf("Final sync complete\n"); 387 /* 388 * Unmount filesystems 389 */ 390 if (panicstr == 0) 391 vfs_unmountall(); 392 } |
393 swapoff_all(); |
|
387 DELAY(100000); /* wait for console output to finish */ 388 } 389 390 print_uptime(); 391 392 /* 393 * Ok, now do things that assume all filesystem activity has 394 * been completed. --- 242 unchanged lines hidden --- | 394 DELAY(100000); /* wait for console output to finish */ 395 } 396 397 print_uptime(); 398 399 /* 400 * Ok, now do things that assume all filesystem activity has 401 * been completed. --- 242 unchanged lines hidden --- |