Messages in this thread | | | Date | 14 Jun 2014 03:28:49 -0400 | From | "George Spelvin" <> | Subject | Re: [PATCH-v2 4/4] random: clean up interrupt entropy accounting for archs w/o cycle counters |
| |
+ if (cycles || (fast_pool->notimer_count >= 32)) + credit++;
Ah, this addresses my concern about too few interrupts, too. If the (non-timer) interrupt rate is less than 32/second, you'll never get any credit.
(If you want to support this mode of operation and still have a non-zero credit rate, move the clear of notimer_count into this condition. Then you get 1 bit per 32 non-timer interrupts no matter how slow.)
| |