Re: [PATCH-v2 4/4] random: clean up interrupt entropy accounting for archs w/o cycle counters

From: George Spelvin
Date: Sat Jun 14 2014 - 03:28:54 EST


+ 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.)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/