diff options
author | 2016-02-29 08:53:02 -0500 | |
---|---|---|
committer | 2016-06-25 17:26:35 +0300 | |
commit | 15516788e581eb32ec1c50e5f00aba3faf95d817 (patch) | |
tree | fc21e9a76367a73ba36b1e9315ca8fd741c544d8 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | tpm: Split out the devm stuff from tpmm_chip_alloc (diff) | |
download | linux-dev-15516788e581eb32ec1c50e5f00aba3faf95d817.tar.xz linux-dev-15516788e581eb32ec1c50e5f00aba3faf95d817.zip |
tpm: Replace device number bitmap with IDR
Replace the device number bitmap with IDR. Extend the number of devices we
can create to 64k.
Since an IDR allows us to associate a pointer with an ID, we use this now
to rewrite tpm_chip_find_get() to simply look up the chip pointer by the
given device ID.
Protect the IDR calls with a mutex.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions