summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-11-07 04:23:58 +0000
committerphk <phk@FreeBSD.org>1994-11-07 04:23:58 +0000
commit0df9927a2011abe1cb64247190dda69b8fee3b63 (patch)
treeba57f95bb321642abf4c231af4f2c03c94877d09
parent5f6647840143c772181884a1aabb18ec92c35155 (diff)
downloadFreeBSD-src-0df9927a2011abe1cb64247190dda69b8fee3b63.zip
FreeBSD-src-0df9927a2011abe1cb64247190dda69b8fee3b63.tar.gz
Calling sync will panic you more often than not.
-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 d0e5a46..a0f6bdf 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 d0e5a46..a0f6bdf 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;
OpenPOWER on IntegriCloud