From 6bc92e913f817ae3d2a766bd9c7696c890e32699 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 7 Nov 1994 04:23:58 +0000 Subject: [PATCH] Calling sync will panic you more often than not. --- sys/i386/apm/apm.c | 5 +---- sys/i386/bios/apm.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/i386/apm/apm.c b/sys/i386/apm/apm.c index d0e5a460b5b6..a0f6bdf06589 100644 --- a/sys/i386/apm/apm.c +++ b/sys/i386/apm/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.4 1994/10/02 01:45:41 phk Exp $ + * $Id: apm.c,v 1.5 1994/10/02 17:40:38 phk Exp $ */ #include "apm.h" @@ -230,9 +230,6 @@ static int apm_default_suspend(void) { int pl; - pl = splhigh(); - sync(curproc, NULL, NULL); - splx(pl); microtime(&suspend_time); apm_suspend_system(); return 0; diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index d0e5a460b5b6..a0f6bdf06589 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -13,7 +13,7 @@ * * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * - * $Id: apm.c,v 1.4 1994/10/02 01:45:41 phk Exp $ + * $Id: apm.c,v 1.5 1994/10/02 17:40:38 phk Exp $ */ #include "apm.h" @@ -230,9 +230,6 @@ static int apm_default_suspend(void) { int pl; - pl = splhigh(); - sync(curproc, NULL, NULL); - splx(pl); microtime(&suspend_time); apm_suspend_system(); return 0;