summaryrefslogtreecommitdiff
path: root/include/media/ov7670.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2015-11-20 18:17:19 +0100
committerDavid S. Miller <davem@davemloft.net>2015-11-23 12:36:08 -0500
commit95e435afefe98b8ef6ae8b764879a064cd931a5c (patch)
tree2b9182d7cf01814f2727c5241072b6d93884d57a /include/media/ov7670.h
parent9e9089e5a2d788db417d4d1f836eecc2fc44e9ff (diff)
rhashtable-test: calculate max_entries value by default
A maximum table size of 64k entries is insufficient for the multiple threads test even in default configuration (10 threads * 50000 objects = 500000 objects in total). Since we know how many objects will be inserted, calculate the max size unless overridden by parameter. Note that specifying the exact number of objects upon table init won't suffice as that value is being rounded down to the next power of two - anticipate this by rounding up to the next power of two in beforehand. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/media/ov7670.h')
0 files changed, 0 insertions, 0 deletions