Skip to content

Commit

Permalink
iommu/amd: Use table' instead irt' as variable name in amd_iommu_up…
Browse files Browse the repository at this point in the history
…date_ga()

The variable of type struct irq_remap_table is always named `table'
except in amd_iommu_update_ga() where it is called `irt'. Make it
consistent and name it also `table'.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Sebastian Andrzej Siewior authored and Joerg Roedel committed Mar 29, 2018
1 parent fde65dd commit 4fde541
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -4405,7 +4405,7 @@ int amd_iommu_update_ga(int cpu, bool is_run, void *data)
{
unsigned long flags;
struct amd_iommu *iommu;
struct irq_remap_table *irt;
struct irq_remap_table *table;
struct amd_ir_data *ir_data = (struct amd_ir_data *)data;
int devid = ir_data->irq_2_irte.devid;
struct irte_ga *entry = (struct irte_ga *) ir_data->entry;
Expand All @@ -4419,11 +4419,11 @@ int amd_iommu_update_ga(int cpu, bool is_run, void *data)
if (!iommu)
return -ENODEV;

irt = get_irq_table(devid);
if (!irt)
table = get_irq_table(devid);
if (!table)
return -ENODEV;

raw_spin_lock_irqsave(&irt->lock, flags);
raw_spin_lock_irqsave(&table->lock, flags);

if (ref->lo.fields_vapic.guest_mode) {
if (cpu >= 0)
Expand All @@ -4432,7 +4432,7 @@ int amd_iommu_update_ga(int cpu, bool is_run, void *data)
barrier();
}

raw_spin_unlock_irqrestore(&irt->lock, flags);
raw_spin_unlock_irqrestore(&table->lock, flags);

iommu_flush_irt(iommu, devid);
iommu_completion_wait(iommu);
Expand Down

0 comments on commit 4fde541

Please sign in to comment.