uml: simplify interval setting
[linux-2.6.git] / arch / um / os-Linux / time.c
index a16a0f484edc8f3fa517c7e2d8a479ef6f2624c3..b156f03e1713421d22fbd8bedaedd60641d51305 100644 (file)
 
 static int is_real_timer = 0;
 
-int set_interval(int is_virtual)
+int set_interval(void)
 {
        int usec = 1000000/UM_HZ;
-       int timer_type = is_virtual ? ITIMER_VIRTUAL : ITIMER_REAL;
        struct itimerval interval = ((struct itimerval) { { 0, usec },
                                                          { 0, usec } });
 
-       if (setitimer(timer_type, &interval, NULL) == -1)
+       if (setitimer(ITIMER_VIRTUAL, &interval, NULL) == -1)
                return -errno;
 
        return 0;