Grumble, try to remember what assembler syntax is used :-/

Increase polling frequency a fraction to just above 1 Hz.
This commit is contained in:
Poul-Henning Kamp 1994-12-16 07:09:22 +00:00
parent 2decd76771
commit d90b957315
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5121
2 changed files with 8 additions and 10 deletions

View File

@ -13,7 +13,7 @@
* *
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
* *
* $Id: apm.c,v 1.7 1994/11/15 14:09:18 bde Exp $ * $Id: apm.c,v 1.8 1994/12/16 06:16:30 phk Exp $
*/ */
#include "apm.h" #include "apm.h"
@ -95,8 +95,7 @@ apm_int(u_long *eax,u_long *ebx,u_long *ecx)
pushl %%esi pushl %%esi
pushl %%edi pushl %%edi
xorl %3,%3 xorl %3,%3
movl %%edi,%3 movl %3,%%esi
movl %%esi,%3
lcall _apm_addr lcall _apm_addr
jnc 1f jnc 1f
incl %3 incl %3
@ -312,7 +311,7 @@ static void
apm_timeout(void *arg1) apm_timeout(void *arg1)
{ {
apm_processevent(); apm_processevent();
timeout(apm_timeout, NULL, hz ); /* 1 Hz */ timeout(apm_timeout, NULL, hz - 1 ); /* More than 1 Hz */
} }
/* enable APM BIOS */ /* enable APM BIOS */
@ -324,7 +323,7 @@ apm_event_enable(void)
#endif #endif
if (apm_initialized) { if (apm_initialized) {
active = 1; active = 1;
timeout(apm_timeout, NULL, 2 * hz); apm_timeout(0);
} }
} }

View File

@ -13,7 +13,7 @@
* *
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD) * Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
* *
* $Id: apm.c,v 1.7 1994/11/15 14:09:18 bde Exp $ * $Id: apm.c,v 1.8 1994/12/16 06:16:30 phk Exp $
*/ */
#include "apm.h" #include "apm.h"
@ -95,8 +95,7 @@ apm_int(u_long *eax,u_long *ebx,u_long *ecx)
pushl %%esi pushl %%esi
pushl %%edi pushl %%edi
xorl %3,%3 xorl %3,%3
movl %%edi,%3 movl %3,%%esi
movl %%esi,%3
lcall _apm_addr lcall _apm_addr
jnc 1f jnc 1f
incl %3 incl %3
@ -312,7 +311,7 @@ static void
apm_timeout(void *arg1) apm_timeout(void *arg1)
{ {
apm_processevent(); apm_processevent();
timeout(apm_timeout, NULL, hz ); /* 1 Hz */ timeout(apm_timeout, NULL, hz - 1 ); /* More than 1 Hz */
} }
/* enable APM BIOS */ /* enable APM BIOS */
@ -324,7 +323,7 @@ apm_event_enable(void)
#endif #endif
if (apm_initialized) { if (apm_initialized) {
active = 1; active = 1;
timeout(apm_timeout, NULL, 2 * hz); apm_timeout(0);
} }
} }