lkml.org 
[lkml]   [2018]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/10] iommu/amd: use `table' instead `irt' as variable name in amd_iommu_update_ga()
    Date
    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>
    ---
    drivers/iommu/amd_iommu.c | 10 +++++-----
    1 file changed, 5 insertions(+), 5 deletions(-)

    diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
    index a5982a61f181..ea120c7b46c9 100644
    --- a/drivers/iommu/amd_iommu.c
    +++ b/drivers/iommu/amd_iommu.c
    @@ -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;
    @@ -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)
    @@ -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);
    --
    2.16.2
    \
     
     \ /
      Last update: 2018-03-22 16:25    [W:9.599 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site