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:
Manish Bhardwaj
2023-11-07 04:40:03 +00:00
committed by Jon Hunter
parent c1e81c594f
commit b918dd5111

View File

@@ -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 */