diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2015-05-20 11:59:52 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-02 08:54:44 +0200 |
commit | c1231a784acc25ec01d35a019533da9ab8593e2e (patch) | |
tree | 29bfc8fe46b3243a64a3b76f806f7f1f4523e227 /arch/powerpc/sysdev/xics/xics-common.c | |
parent | powerpc: Non relocatable system call doesn't need a trampoline (diff) | |
download | linux-c1231a784acc25ec01d35a019533da9ab8593e2e.tar.xz linux-c1231a784acc25ec01d35a019533da9ab8593e2e.zip |
powerpc: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
already have a pointer to corresponding irq_desc.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/sysdev/xics/xics-common.c')
-rw-r--r-- | arch/powerpc/sysdev/xics/xics-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/sysdev/xics/xics-common.c b/arch/powerpc/sysdev/xics/xics-common.c index 5bc5889d4acc..08c248eb491b 100644 --- a/arch/powerpc/sysdev/xics/xics-common.c +++ b/arch/powerpc/sysdev/xics/xics-common.c @@ -227,7 +227,7 @@ void xics_migrate_irqs_away(void) /* Locate interrupt server */ server = -1; - ics = irq_get_chip_data(virq); + ics = irq_desc_get_chip_data(desc); if (ics) server = ics->get_server(ics, irq); if (server < 0) { |