aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1994-11-07 04:23:58 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1994-11-07 04:23:58 +0000
commit6bc92e913f817ae3d2a766bd9c7696c890e32699 (patch)
treeba57f95bb321642abf4c231af4f2c03c94877d09
parent957c66352645d8532bf231e0f83c016e0446290f (diff)
downloadsrc-6bc92e913f817ae3d2a766bd9c7696c890e32699.tar.gz
src-6bc92e913f817ae3d2a766bd9c7696c890e32699.zip
Calling sync will panic you more often than not.
Notes
Notes: svn path=/head/; revision=4225
-rw-r--r--sys/i386/apm/apm.c5
-rw-r--r--sys/i386/bios/apm.c5
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;