]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: change entropy formula for easier understanding
authorMiaoqing Pan <miaoqing@codeaurora.org>
Tue, 9 Aug 2016 07:02:26 +0000 (15:02 +0800)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 13 Oct 2016 14:22:44 +0000 (17:22 +0300)
commitd507cabf9f8eac1a920fb8587a1952a4f7db6ab2
treed623c6e28ab03759181614f8136dcfee98004e5d
parentd64ee316d747602e4bc455a9a70977d2e13ec08e
ath9k: change entropy formula for easier understanding

The quality of ADC entropy is 10 bits of min-entropy for
a 32-bit value, change '(((x) * 8 * 320) >> 10)' to
'(((x) * 8 * 10) >> 5)' for easier understanding.

Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/rng.c