commit | aa77ea0e43dc5bb0c1dcc9bad76afaa7faca8cab | [log] [tgz] |
---|---|---|
author | Tomas Winkler <tomas.winkler@intel.com> | Mon Sep 12 13:52:10 2016 +0300 |
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Thu Sep 15 16:04:21 2016 +0300 |
tree | c48349a05d071d992e8b4a8ca195c8440016fa8a | |
parent | 71801310b12b65b1fd3285cc899ecbf52c4f8ff3 [diff] |
tpm/tpm_crb: cache cmd_size register value. Instead of expensive register access on retrieving cmd_size on each send, save the value during initialization in the private context. The value doesn't change. Signed-off-by: Tomas Winkler <tomas.winkler@intel.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>