From: Mark Brown Date: Thu, 5 Jul 2012 20:19:17 +0000 (+0000) Subject: rtc: wm831x: Feed the write counter into device_add_randomness() X-Git-Tag: v3.6-rc1~26^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dccf55f4cb011a7552a8a2749a580662f5ed8ed;p=pandora-kernel.git rtc: wm831x: Feed the write counter into device_add_randomness() The tamper evident features of the RTC include the "write counter" which is a pseudo-random number regenerated whenever we set the RTC. Since this value is unpredictable it should provide some useful seeding to the random number generator. Only do this on boot since the goal is to seed the pool rather than add useful entropy. Signed-off-by: Mark Brown Signed-off-by: Theodore Ts'o Cc: stable@vger.kernel.org --- Reading git-diff-tree failed