提交 cf58fcb1 编写于 作者: S Stephan Mueller 提交者: Herbert Xu

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.
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NStephan Mueller <smueller@chronox.de>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 19fa7752
...@@ -131,9 +131,6 @@ static inline void jent_get_nstime(__u64 *out) ...@@ -131,9 +131,6 @@ static inline void jent_get_nstime(__u64 *out)
* and are registered with clocksource_register() * and are registered with clocksource_register()
*/ */
if ((0 == tmp) && if ((0 == tmp) &&
#ifndef MODULE
(0 == timekeeping_valid_for_hres()) &&
#endif
(0 == __getnstimeofday(&ts))) { (0 == __getnstimeofday(&ts))) {
tmp = ts.tv_sec; tmp = ts.tv_sec;
tmp = tmp << 32; tmp = tmp << 32;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册