hwrng: Pass entropy to add_hwgenerator_randomness() in bits, not bytes
The entropy argument to add_hwgenerator_randomness() is passed directly to credit_entropy_bits() so we should be passing the number of bits, not bytes. Change-Id: I068c1073245944dddf0cbf7e69f1c0f1d96010e2 Fixes: 646d838eef81 "hwrng: create filler thread" Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
parent
944699277b
commit
9e43961585
|
@ -333,7 +333,7 @@ static int hwrng_fillfn(void *unused)
|
|||
continue;
|
||||
}
|
||||
add_hwgenerator_randomness((void *)rng_fillbuf, rc,
|
||||
(rc*current_quality)>>10);
|
||||
rc * current_quality * 8 >> 10);
|
||||
}
|
||||
hwrng_fill = 0;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue