mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
virt: tegra: Fix LTP test issue with vcpu yield
Fix LTP test issue with vcpu yield by using cpumask_of() instead of local variable in irq_set_affinity_hint() Bug 4071450 Change-Id: Ibb08b6a4de7b349c07764cc62d417a39b319492d Signed-off-by: Suresh Venkatachalam <skathirampat@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2888011 (cherry picked from commit 6fe837b40219d50ed4f8b0f054ac36fe187bb130) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2893603 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
326c944e83
commit
c54b70d60c
@@ -289,7 +289,6 @@ static int tegra_hv_vcpu_yield_probe(struct platform_device *pdev)
|
|||||||
int *vcpu_list = NULL;
|
int *vcpu_list = NULL;
|
||||||
struct class *vcpu_yield_class;
|
struct class *vcpu_yield_class;
|
||||||
struct tegra_hv_ivc_cookie *ivck;
|
struct tegra_hv_ivc_cookie *ivck;
|
||||||
struct cpumask cpumask;
|
|
||||||
|
|
||||||
dt_array_mem = kcalloc(3, MAX_YIELD_VM_COUNT * sizeof(int), GFP_KERNEL);
|
dt_array_mem = kcalloc(3, MAX_YIELD_VM_COUNT * sizeof(int), GFP_KERNEL);
|
||||||
if (dt_array_mem == NULL) {
|
if (dt_array_mem == NULL) {
|
||||||
@@ -432,9 +431,7 @@ static int tegra_hv_vcpu_yield_probe(struct platform_device *pdev)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpumask_clear(&cpumask);
|
irq_set_affinity_hint(ivck->irq, cpumask_of(vcpu_yield->vcpu));
|
||||||
cpumask_set_cpu(vcpu_yield->vcpu, &cpumask);
|
|
||||||
irq_set_affinity_hint(ivck->irq, &cpumask);
|
|
||||||
|
|
||||||
tegra_hv_ivc_channel_reset(ivck);
|
tegra_hv_ivc_channel_reset(ivck);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user