From: Thomas Gleixner <tglx@linutronix.de>
To: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Jiang Liu <jiang.liu@linux.intel.com>
Subject: [patch 13/20] powerpc/irq: Use access helper irq_data_get_affinity_mask()
Date: Mon, 13 Jul 2015 20:50:20 -0000 [thread overview]
Message-ID: <20150713135740.079385036@linutronix.de> (raw)
In-Reply-To: 20150713135648.540293392@linutronix.de
From: Jiang Liu <jiang.liu@linux.intel.com>
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/powerpc/kernel/irq.c | 2 +-
arch/powerpc/sysdev/xics/ics-opal.c | 2 +-
arch/powerpc/sysdev/xics/ics-rtas.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: tip/arch/powerpc/kernel/irq.c
===================================================================
--- tip.orig/arch/powerpc/kernel/irq.c
+++ tip/arch/powerpc/kernel/irq.c
@@ -441,7 +441,7 @@ void migrate_irqs(void)
chip = irq_data_get_irq_chip(data);
- cpumask_and(mask, data->affinity, map);
+ cpumask_and(mask, irq_data_get_affinity_mask(data), map);
if (cpumask_any(mask) >= nr_cpu_ids) {
pr_warn("Breaking affinity for irq %i\n", irq);
cpumask_copy(mask, map);
Index: tip/arch/powerpc/sysdev/xics/ics-opal.c
===================================================================
--- tip.orig/arch/powerpc/sysdev/xics/ics-opal.c
+++ tip/arch/powerpc/sysdev/xics/ics-opal.c
@@ -54,7 +54,7 @@ static void ics_opal_unmask_irq(struct i
if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS)
return;
- server = xics_get_irq_server(d->irq, d->affinity, 0);
+ server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0);
server = ics_opal_mangle_server(server);
rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY);
Index: tip/arch/powerpc/sysdev/xics/ics-rtas.c
===================================================================
--- tip.orig/arch/powerpc/sysdev/xics/ics-rtas.c
+++ tip/arch/powerpc/sysdev/xics/ics-rtas.c
@@ -47,7 +47,7 @@ static void ics_rtas_unmask_irq(struct i
if (hw_irq == XICS_IPI || hw_irq == XICS_IRQ_SPURIOUS)
return;
- server = xics_get_irq_server(d->irq, d->affinity, 0);
+ server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0);
call_status = rtas_call(ibm_set_xive, 3, 1, NULL, hw_irq, server,
DEFAULT_PRIORITY);
next prev parent reply other threads:[~2015-07-13 20:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-13 20:50 [patch 00/20] powerpc: Interrupt cleanups and API change preparation Thomas Gleixner
2015-07-13 20:50 ` [patch 01/20] powerpc/media5200: Consolidate chained IRQ handler install/remove Thomas Gleixner
2015-07-13 20:50 ` [patch 02/20] powerpc/52xx: " Thomas Gleixner
2015-07-13 20:50 ` [patch 03/20] powerpc/pq2ads: " Thomas Gleixner
2015-07-13 20:50 ` [patch 04/20] powerpc/axon_msi: " Thomas Gleixner
2015-07-13 20:50 ` [patch 05/20] powerpc/cell: " Thomas Gleixner
2015-07-13 20:50 ` [patch 06/20] powerpc/spider-pic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 07/20] powerpc/hlwd-pic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 08/20] powerpc/holly: " Thomas Gleixner
2015-07-13 20:50 ` [patch 09/20] powerpc/mpc7448: " Thomas Gleixner
2015-07-13 20:50 ` [patch 10/20] powerpc/mpic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 11/20] powerpc/qe_ic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 12/20] powerpc/uic: " Thomas Gleixner
2015-07-13 20:50 ` Thomas Gleixner [this message]
2015-07-13 20:50 ` [patch 14/20] powerpc/mpc52xx: Use irq_set_handler_locked() Thomas Gleixner
2015-07-13 20:50 ` [patch 15/20] powerpc/cpm2: " Thomas Gleixner
2015-07-13 20:50 ` [patch 16/20] powerpc/ipic: " Thomas Gleixner
2015-07-13 20:50 ` [patch 17/20] powerpc/mpc8xx: " Thomas Gleixner
2015-07-13 20:50 ` [patch 18/20] powerpc/mpc5121: Prepare cpld_pic_cascade for irq argument removal Thomas Gleixner
2015-07-13 20:50 ` [patch 19/20] powerpc/85xx: Prepare cascade handlers " Thomas Gleixner
2015-07-13 20:50 ` [patch 20/20] powerpc/cell: Prepare iic_ioexc_cascade " Thomas Gleixner
2015-07-16 4:37 ` [patch 00/20] powerpc: Interrupt cleanups and API change preparation Michael Ellerman
2015-07-31 21:47 ` Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150713135740.079385036@linutronix.de \
--to=tglx@linutronix.de \
--cc=benh@kernel.crashing.org \
--cc=jiang.liu@linux.intel.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).