security: tlk_driver: rejig switch-to-cpu0 code
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 2 Sep 2013 11:50:05 +0000 (16:50 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:41:03 +0000 (17:41 -0700)
commitff6ec626815cd28bed209dcc4bbcdcda79878edf
tree178c52f5ce752660f9a81f6e872d5b3b3fcd766f
parent7b5bc139464fec1af3e692023e3d568745f59b64
security: tlk_driver: rejig switch-to-cpu0 code

* Try to encompass the duplicate cpu affinity code in
a macro which can be used at multiple places without
code duplication.
* Avoid over-writing saved_regs, while re-entering the
secure world with a FS-complete smc call.
* Remove the fs_ready logic as it is buggy and is not
working as expected.

Change-Id: I916e5ae53d87285e3e3be14647446a22ae795c1c
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/269118
Reviewed-by: James Zhao <jamesz@nvidia.com>
security/tlk_driver/ote_comms.c
security/tlk_driver/ote_fs.c
security/tlk_driver/ote_protocol.h