Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src-draft/trunk]: src/sys/arch/mips/cavium/dev Use rnd_add_data_sync from th...
details: https://anonhg.NetBSD.org/src-all/rev/e67537834cee
branches: trunk
changeset: 932682:e67537834cee
user: Taylor R Campbell <riastradh%NetBSD.org@localhost>
date: Wed May 13 19:38:18 2020 +0000
description:
Use rnd_add_data_sync from the callback.
(doesn't actually make a difference any more in HEAD, but this has been
the API contract for years and it did make a difference in 6-9 in case
we want to pull this up)
diffstat:
sys/arch/mips/cavium/dev/octeon_rnm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r debe22623b19 -r e67537834cee sys/arch/mips/cavium/dev/octeon_rnm.c
--- a/sys/arch/mips/cavium/dev/octeon_rnm.c Wed May 13 16:07:07 2020 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_rnm.c Wed May 13 19:38:18 2020 +0000
@@ -243,8 +243,8 @@
#ifdef OCTEON_RNM_DEBUG
hexdump(printf, "rnm", sample, sizeof sample);
#endif
- rnd_add_data(&sc->sc_rndsrc, sample, sizeof sample,
- NBBY*sizeof(sample)/BPB);
+ rnd_add_data_sync(&sc->sc_rndsrc, sample,
+ sizeof sample, NBBY*sizeof(sample)/BPB);
needed -= MIN(needed, MAX(1, NBBY*sizeof(sample)/BPB));
}
Home |
Main Index |
Thread Index |
Old Index