lkml.org 
[lkml]   [2014]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.)


\
 
 \ /
  Last update: 2014-06-14 10:01    [W:0.064 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site