]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
security: tlk_driver: Run kthreads on CPU0
authorArto Merilainen <amerilainen@nvidia.com>
Mon, 12 May 2014 08:06:01 +0000 (11:06 +0300)
committerRiham Haidar <rhaidar@nvidia.com>
Wed, 14 May 2014 21:06:03 +0000 (14:06 -0700)
commit3f0c66e7527a8098ee9b745e544b2f6acf78f557
tree1e6ce4484d2d7819b0c937df4f6843c2120854d9
parent1df92ded1131c9c25d49ad2fd01a1583c350757f
security: tlk_driver: Run kthreads on CPU0

Currently, the driver assumes that smc requests come either
from workqueue or from a thread that has possibility to set
cpu affinity. However, kernel threads by default do not have
this possibility and in principle the flag can be set in middle
of operation.

Turning on devices is sometimes done in kernel threads and in GPU
case we may need to change i.e. the VPR parameters. Therefore,
ensure that the communication is done on CPU0.

Bug 1506585

Change-Id: I0cbd8b841a07c8400310167fa8800eaae9de21f2
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/408075
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
security/tlk_driver/ote_comms.c