Module Name: src Committed By: riastradh Date: Fri May 8 00:53:25 UTC 2020
Modified Files: src/sys/kern: kern_entropy.c Log Message: Make curcpu_available() always true. This should work now that x86 runs cpu_init_rng just after curcpu() and curlwp are initialized, and no other architecture needs it to work that early. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/kern/kern_entropy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/kern_entropy.c diff -u src/sys/kern/kern_entropy.c:1.14 src/sys/kern/kern_entropy.c:1.15 --- src/sys/kern/kern_entropy.c:1.14 Thu May 7 19:07:29 2020 +++ src/sys/kern/kern_entropy.c Fri May 8 00:53:25 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_entropy.c,v 1.14 2020/05/07 19:07:29 riastradh Exp $ */ +/* $NetBSD: kern_entropy.c,v 1.15 2020/05/08 00:53:25 riastradh Exp $ */ /*- * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -75,7 +75,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.14 2020/05/07 19:07:29 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.15 2020/05/08 00:53:25 riastradh Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -264,7 +264,7 @@ static inline bool curcpu_available(void) { - return __predict_true(!cold); + return true; } /*