Calling sync will panic you more often than not.

This commit is contained in:
Poul-Henning Kamp 1994-11-07 04:23:58 +00:00
parent 957c663526
commit 6bc92e913f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4225
2 changed files with 2 additions and 8 deletions

View File

@ -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;

View File

@ -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;