Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Merge branch '4.2.4' of github.com:/LIS/lis-next into 4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vyadavmsft committed Feb 13, 2018
2 parents cf53fcc + 25663d8 commit 3fa0b52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hv-rhel7.x/hv/pci-hyperv.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ static int hv_set_affinity(struct irq_data *data, const struct cpumask *mask,
{
struct msi_desc *msi_desc = data->msi_desc;
struct irq_cfg *cfg = irqd_cfg(data);
struct cpumask *dest = cfg->domain;
const struct cpumask *dest;
struct retarget_msi_interrupt *params;
struct hv_pcibus_device *hbus;
struct pci_bus *pbus;
Expand All @@ -805,6 +805,10 @@ static int hv_set_affinity(struct irq_data *data, const struct cpumask *mask,
u64 res;
u32 var_size = 0;

if (cpumask_equal(mask, cpu_online_mask))
dest = cfg->domain;
else
dest = mask;
ret = __ioapic_set_affinity(data, dest, &dest_id);
if (ret)
return ret;
Expand Down

0 comments on commit 3fa0b52

Please sign in to comment.