[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 6/7] Exit loop if we have been there too long
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH 6/7] Exit loop if we have been there too long |
Date: |
Fri, 22 Jun 2012 14:44:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.97 (gnu/linux) |
"(Wei-Ren Chen)" <address@hidden> wrote:
>> >> + if ((i & 63) == 0) {
>> >> + uint64_t t1 = (qemu_get_clock_ns(rt_clock) - bwidth) /
>> >> 1000000;
>> >> + if (t1 > 50) { /* 50ms, half buffered_file limit */
>> > can't we use a constant ?
>>
>> 50 is a constant already, no? Or what do you mean.
>
> I guess Orit means,
>
> #define THRESHOLD 50
>
> if (t1 > THRESHOLD) { ... }
Thanks, Added.
Later, Juan.