1. 09 11月, 2016 2 次提交
  2. 07 2月, 2016 1 次提交
  3. 29 1月, 2016 1 次提交
  4. 18 11月, 2015 1 次提交
  5. 14 10月, 2015 1 次提交
  6. 05 10月, 2015 1 次提交
    • A
      mwifiex: avoid gettimeofday in ba_threshold setting · 52f4f918
      Arnd Bergmann 提交于
      mwifiex_get_random_ba_threshold() uses a complex homegrown implementation
      to generate a pseudo-random number from the current time as returned
      from do_gettimeofday().
      
      This currently requires two 32-bit divisions plus a couple of other
      computations that are eventually discarded as only eight bits of
      the microsecond portion are used at all.
      
      We could replace this with a call to get_random_bytes(), but that
      might drain the entropy pool too fast if this is called for each
      packet.
      
      Instead, this patch converts it to use ktime_get_ns(), which is a
      bit faster than do_gettimeofday(), and then uses a similar algorithm
      as before, but in a way that takes both the nanosecond and second
      portion into account for slightly-more-but-still-not-very-random
      pseudorandom number.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Amitkumar Karwar <akarwar@marvell.com>
      Cc: Nishant Sarmukadam <nishants@marvell.com>
      Cc: Kalle Valo <kvalo@codeaurora.org>
      Cc: linux-wireless@vger.kernel.org
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      52f4f918
  7. 29 9月, 2015 4 次提交
  8. 21 7月, 2015 7 次提交
  9. 26 5月, 2015 1 次提交
  10. 09 5月, 2015 1 次提交
  11. 17 3月, 2015 3 次提交
  12. 04 3月, 2015 1 次提交
  13. 03 2月, 2015 1 次提交
  14. 06 12月, 2014 2 次提交
  15. 26 11月, 2014 1 次提交
  16. 26 6月, 2014 3 次提交
  17. 21 6月, 2014 1 次提交
  18. 30 5月, 2014 1 次提交
  19. 23 5月, 2014 1 次提交
  20. 19 5月, 2014 1 次提交
  21. 23 4月, 2014 1 次提交
  22. 15 3月, 2014 1 次提交
  23. 21 2月, 2014 1 次提交
  24. 13 2月, 2014 2 次提交