From: Adam Jackson <a...@redhat.com>

No reason to obscure this.

Signed-off-by: Adam Jackson <a...@redhat.com>
---
 usr/actor.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/usr/actor.c b/usr/actor.c
index fb90924..9c2f449 100644
--- a/usr/actor.c
+++ b/usr/actor.c
@@ -38,7 +38,6 @@ static volatile uint64_t actor_jiffies = 0;
         __ret; \
 })
 
-#define ACTOR_TICKS            actor_jiffies
 #define ACTOR_TICKS_10MS(_a)   (_a)
 #define ACTOR_MS_TO_TICKS(_a)  ((_a)/ACTOR_RESOLUTION)
 
@@ -96,7 +95,7 @@ actor_schedule_private(actor_t *thread, uint32_t ttschedule, 
int head)
        actor_t *next_thread;
 
        delay_time = ACTOR_MS_TO_TICKS(ttschedule);
-       current_time = ACTOR_TICKS;
+       current_time = actor_jiffies;
 
        log_debug(7, "thread %p schedule: delay %" PRIu64 " state %d",
                thread, delay_time, thread->state);
@@ -244,7 +243,7 @@ actor_poll(void)
         * if new time is not same as old time */
        if (scheduler_loops++ > ACTOR_MAX_LOOPS) {
                /* try coming in about every 100 msecs */
-               current_time = ACTOR_TICKS;
+               current_time = actor_jiffies;
                scheduler_loops = 0;
                /* checking whether we are in the same tick... */
                if ( ACTOR_TICKS_10MS(current_time) !=
@@ -285,5 +284,5 @@ actor_poll(void)
                        (long)thread);
        }
 
-       ACTOR_TICKS++;
+       actor_jiffies++;
 }
-- 
1.8.1.4

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to