aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_misc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-04-06 08:26:08 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-04-06 08:26:08 +0000
commit4cf41af3d424a8ec0670f03b36e8b685127f5851 (patch)
tree44f0e1d9df915ac35ba2bfbed1fc7c38c4364979 /sys/i386/linux/linux_misc.c
parente248ae96af2af0f65ed40014475b06919cc76451 (diff)
downloadsrc-4cf41af3d424a8ec0670f03b36e8b685127f5851.tar.gz
src-4cf41af3d424a8ec0670f03b36e8b685127f5851.zip
Make a kernel version of the timer* functions called timerval* to be
more consistent. OK'ed by: bde
Notes
Notes: svn path=/head/; revision=35058
Diffstat (limited to 'sys/i386/linux/linux_misc.c')
-rw-r--r--sys/i386/linux/linux_misc.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c
index 0a6277a52e7b..d2e17d4f8cee 100644
--- a/sys/i386/linux/linux_misc.c
+++ b/sys/i386/linux/linux_misc.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.35 1998/03/30 09:49:34 phk Exp $
+ * $Id: linux_misc.c,v 1.36 1998/04/04 18:56:54 phk Exp $
*/
#include <sys/param.h>
@@ -76,19 +76,19 @@ linux_alarm(struct proc *p, struct linux_alarm_args *args)
s = splclock(); /* XXX Still needed ? */
old_it = p->p_realtimer;
getmicrotime(&tv);
- if (timerisset(&old_it.it_value))
- if (timercmp(&old_it.it_value, &tv, <))
- timerclear(&old_it.it_value);
+ if (timevalisset(&old_it.it_value))
+ if (timevalcmp(&old_it.it_value, &tv, <))
+ timevalclear(&old_it.it_value);
else
timevalsub(&old_it.it_value, &tv);
splx(s);
if (itimerfix(&it.it_value) || itimerfix(&it.it_interval))
return EINVAL;
s = splclock(); /* XXX Still needed ? */
- if (timerisset(&p->p_realtimer.it_value))
+ if (timevalisset(&p->p_realtimer.it_value))
untimeout(realitexpire, (caddr_t)p, p->p_ithandle);
getmicrotime(&tv);
- if (timerisset(&it.it_value)) {
+ if (timevalisset(&it.it_value)) {
timevaladd(&it.it_value, &tv);
p->p_ithandle = timeout(realitexpire, (caddr_t)p, hzto(&it.it_value));
}
@@ -476,7 +476,7 @@ linux_newselect(struct proc *p, struct linux_newselect_args *args)
utv.tv_usec += 1000000;
}
if (utv.tv_sec < 0)
- timerclear(&utv);
+ timevalclear(&utv);
if ((error = copyout(&utv, tvp, sizeof(utv))))
goto select_out;
bsa.tv = tvp;
@@ -512,9 +512,9 @@ linux_newselect(struct proc *p, struct linux_newselect_args *args)
timevalsub(&tv1, &tv0);
timevalsub(&utv, &tv1);
if (utv.tv_sec < 0)
- timerclear(&utv);
+ timevalclear(&utv);
} else
- timerclear(&utv);
+ timevalclear(&utv);
#ifdef DEBUG
printf("Linux-emul(%d): outgoing timeout (%d/%d)\n",
p->p_pid, utv.tv_sec, utv.tv_usec);