Skip to contentSkip to conversation

crypto: jitterentropy - remove timekeeping_valid_for_hres

PATCH Applied Stephan Mueller 2 participants 2 messages May 27, 2015 – May 28, 2015 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: jitterentropy - remove timekeeping_valid_for_hres

The patch removes the use of timekeeping_valid_for_hres which is now marked as internal for the time keeping subsystem. The jitterentropy does not really require this verification as a coarse timer (when random_get_entropy is absent) is discovered by the initialization test of jent_entropy_init, which would cause the jitter rng to not load in that case.

---
 crypto/jitterentropy.c | 3 ---
 1 file changed, 3 deletions(-)
crypto/jitterentropy.c +0 -3
index 1ebe58a..a60147e 100644
@@ -131,9 +131,6 @@ static inline void jent_get_nstime(__u64 *out)
 	 * and are registered with clocksource_register()
 	 */
 	if ((0 == tmp) &&
-#ifndef MODULE
-	   (0 == timekeeping_valid_for_hres()) &&
-#endif
 	   (0 == __getnstimeofday(&ts))) {
 		tmp = ts.tv_sec;
 		tmp = tmp << 32;
Signature · 1 line
2.1.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Stephan Mueller

The patch removes the use of timekeeping_valid_for_hres which is now marked as internal for the time keeping subsystem. The jitterentropy does not really require this verification as a coarse timer (when random_get_entropy is absent) is discovered by the initialization test of jent_entropy_init, which would cause the jitter rng to not load in that case.

Applied.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt