]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tpm/tpm_crb: cache cmd_size register value.
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 12 Sep 2016 10:52:10 +0000 (13:52 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Thu, 15 Sep 2016 13:04:21 +0000 (16:04 +0300)
commitaa77ea0e43dc5bb0c1dcc9bad76afaa7faca8cab
treec48349a05d071d992e8b4a8ca195c8440016fa8a
parent71801310b12b65b1fd3285cc899ecbf52c4f8ff3
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>
drivers/char/tpm/tpm_crb.c