mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
vsc: pin vsc thread to default core
pin the vsc thread to default logical core 2 if the lcpu_affinity dts property is missing Bug 4231381 Change-Id: I6d9787ae26d5b6562c8379df6d05b9218a02b0b3 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3011514 Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3260488 Reviewed-by: Gokul Vasan L J <gokull@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Jon Hunter
parent
c1e81c594f
commit
b918dd5111
@@ -1599,9 +1599,8 @@ static void vblk_init_device(struct work_struct *ws)
|
||||
/* read lcpu_affinity from dts */
|
||||
if (of_property_read_u32_index(vblkdev->device->of_node, "lcpu_affinity", 0,
|
||||
&lcpu_affinity)) {
|
||||
dev_err(vblkdev->device, "Failed to read lcpu_affinity property\n");
|
||||
mutex_unlock(&vblkdev->ivc_lock);
|
||||
return;
|
||||
/* pin thread to logical core 2 if dts property is missing */
|
||||
lcpu_affinity = 2;
|
||||
}
|
||||
|
||||
/* convert lcpu to vcpu */
|
||||
|
||||
Reference in New Issue
Block a user