Skip to content

Commit

Permalink
crypto: jitterentropy - remove timekeeping_valid_for_hres
Browse files Browse the repository at this point in the history
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.

Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Stephan Mueller <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
smuellerDD authored and herbertx committed May 28, 2015
1 parent 19fa775 commit cf58fcb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crypto/jitterentropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf58fcb

Please sign in to comment.